|
11 | 11 | final readonly class MapFrom
|
12 | 12 | {
|
13 | 13 | /**
|
14 |
| - * @param class-string<object>|'array'|array<class-string<object>|'array'>|null $source The specific source class name or array. If null this attribute will be used for all source classes. |
15 |
| - * @param string|null $property The source property name. If null, the target property name will be used. |
16 |
| - * @param int|null $maxDepth The maximum depth of the mapping. If null, the default max depth will be used. |
17 |
| - * @param string|callable(mixed $value, object $object): mixed|null $transformer A transformer id or a callable that transform the value during mapping |
18 |
| - * @param bool|null $ignore If true, the property will be ignored during mapping |
19 |
| - * @param string|null $if The condition to map the property, using the expression language |
20 |
| - * @param string[]|null $groups The groups to map the property |
21 |
| - * @param string|null $dateTimeFormat The date-time format to use when transforming this property |
| 14 | + * @param class-string<object>|'array'|array<class-string<object>|'array'>|null $source The specific source class name or array. If null this attribute will be used for all source classes. |
| 15 | + * @param string|null $property The source property name. If null, the target property name will be used. |
| 16 | + * @param int|null $maxDepth The maximum depth of the mapping. If null, the default max depth will be used. |
| 17 | + * @param string|callable(mixed $value, object|array $source, array $context): mixed $transformer A transformer id or a callable that transform the value during mapping |
| 18 | + * @param bool|null $ignore If true, the property will be ignored during mapping |
| 19 | + * @param string|null $if The condition to map the property, using the expression language |
| 20 | + * @param string[]|null $groups The groups to map the property |
| 21 | + * @param string|null $dateTimeFormat The date-time format to use when transforming this property |
22 | 22 | */
|
23 | 23 | public function __construct(
|
24 | 24 | public string|array|null $source = null,
|
|
0 commit comments