<?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 SortEntryInput
 * Paging configuration * @property null|FieldDescriptionInputInputType $sortBy = null The field to sort by
 * @property null|SortOrderEnum $sortOrder = null The sort direction
 */
final class SortEntryInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'sortBy') {
            return new FieldDescriptionInputInputType($value);
        }

        if ($name === 'sortOrder') {
            return new SortOrderEnum($value);
        }

        return $value;
    }
}