<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\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 AceBITPasswordDepotDatabaseInput
 * A database within the AceBIT Password Depot management system * @property null|iterable|AceBITPasswordDepotSecretInputInputType[] $accounts = null The list of AceBIT Password Depot accounts assigned to the database folder
 * @property null|string $fingerprint = null The database Fingerprint
 * @property null|iterable|AceBITPasswordDepotFolderInputInputType[] $folders = null The list of AceBIT Password Depot Folders
 * @property null|string $name = null The database Name
 */
final class AceBITPasswordDepotDatabaseInputInputType 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 === 'folders') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new AceBITPasswordDepotFolderInputInputType($v)); })($value);
        }

        return $value;
    }
}