<?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 DomainQueueStatusInput
 * DomainQueueStatus * @property null|DomainStatusInputInputType $currentDomain = null currentDomain
 * @property int $domainsProcessed domainsProcessed
 * @property int $domainsToProcess domainsToProcess
 * @property null|string $lastMessage = null lastMessage
 * @property null|DiscoveryQueueStatusEnum $status = null status
 */
final class DomainQueueStatusInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'currentDomain') {
            return new DomainStatusInputInputType($value);
        }

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

        return $value;
    }
}