<?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 AceBITPasswordDepotFolderInput
 * A folder within the AceBIT Password Depot management system * @property null|iterable|AceBITPasswordDepotSecretInputInputType[] $accounts = null The list of AceBIT Password Depot accounts assigned to this folder
 * @property null|string $fingerprint = null The AceBIT Password Depot folder fingerprint ID
 * @property null|AceBITPasswordDepotItemClassTypeEnum $itemClass = null The AceBIT Password Depot folder itemclass
 * @property null|string $name = null The folder name
 * @property null|iterable|AceBITPasswordDepotFolderInputInputType[] $subfolders = null The list of AceBIT Password Depot subfolders folder
 */
final class AceBITPasswordDepotFolderInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'accounts') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new AceBITPasswordDepotSecretInputInputType($v)); })($value);
        }

        if ($name === 'itemClass') {
            return new AceBITPasswordDepotItemClassTypeEnum($value);
        }

        if ($name === 'subfolders') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new AceBITPasswordDepotFolderInputInputType($v)); })($value);
        }

        return $value;
    }
}