0 follower

Final Class Yiisoft\Hydrator\Attribute\Parameter\Collection

InheritanceYiisoft\Hydrator\Attribute\Parameter\Collection
ImplementsYiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface

Converts the resolved value to array of instances of the class specified in {@see Collection::$className}.

Non-resolved and invalid values are skipped.

Public Properties

Hide inherited properties

Property Type Description Defined By
$className string Yiisoft\Hydrator\Attribute\Parameter\Collection

Property Details

Hide inherited properties

$className public property
public string $className null

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $className )
$className string

                public function __construct(
    public readonly string $className,
) {
}

            
getResolver() public method

public string getResolver ( )

                public function getResolver(): string
{
    return CollectionResolver::class;
}