<?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 DirectoryQueueStatusInput
 * DirectoryQueueStatus * @property null|DirectoryStatusInputInputType $currentObject = null currentObject
 * @property null|string $lastMessage = null lastMessage
 * @property int $objectsProcessed objectsProcessed
 * @property int $objectsToProcess objectsToProcess
 * @property null|DiscoveryQueueStatusEnum $status = null status
 */
final class DirectoryQueueStatusInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'currentObject') {
            return new DirectoryStatusInputInputType($value);
        }

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

        return $value;
    }
}