<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Type\InputType;

/**
 * This code is @generated by axtiva/flexible-graphql-php do not edit it
 * PHP representation of graphql type PaasItemStatusInput
 * Platform as a Service (PaaS) discovery item status * @property null|string $discoveryJobName = null discoveryJobName
 * @property null|string $lastMessage = null lastMessage
 * @property null|string $name = null name
 * @property int $percentage percentage
 * @property null|DiscoveryQueueItemStatusEnum $status = null status
 * @property null|PaasTypeEnum $type = null type
 */
final class PaasItemStatusInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'status') {
            return new DiscoveryQueueItemStatusEnum($value);
        }

        if ($name === 'type') {
            return new PaasTypeEnum($value);
        }

        return $value;
    }
}