Final Class Yiisoft\Hydrator\Attribute\Parameter\Collection
| Inheritance | Yiisoft\Hydrator\Attribute\Parameter\Collection |
|---|---|
| Implements | Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface |
Converts the resolved value to array of instances of the class specified in Yiisoft\Hydrator\Attribute\Parameter\Collection::$className.
Non-resolved and invalid values are skipped.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $className | string | Yiisoft\Hydrator\Attribute\Parameter\Collection |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Hydrator\Attribute\Parameter\Collection | |
| getResolver() | Yiisoft\Hydrator\Attribute\Parameter\Collection |
Property Details
Method Details
| public __construct( string $className ): mixed | ||
| $className | string | |
public function __construct(
public readonly string $className,
) {}
| public getResolver( ): string |
public function getResolver(): string
{
return CollectionResolver::class;
}
Signup or Login in order to comment.