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 {@see 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 mixed __construct ( string $className ) | ||
| $className | string | |
public function __construct(
public readonly string $className,
) {
}
| public string getResolver ( ) |
public function getResolver(): string
{
return CollectionResolver::class;
}
Signup or Login in order to comment.