Skip to content

Commit 1ad4779

Browse files
committed
fix: signature of Map attributes transformer property
1 parent 253325d commit 1ad4779

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/Attribute/MapFrom.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
final readonly class MapFrom
1212
{
1313
/**
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
2222
*/
2323
public function __construct(
2424
public string|array|null $source = null,

src/Attribute/MapTo.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
final readonly class MapTo
1212
{
1313
/**
14-
* @param class-string<object>|'array'|array<class-string<object>|'array'>|null $target The specific target class name or array. If null this attribute will be used for all target classes.
15-
* @param string|null $property The target property name. If null, the source 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 $target The specific target class name or array. If null this attribute will be used for all target classes.
15+
* @param string|null $property The target property name. If null, the source 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
2222
*/
2323
public function __construct(
2424
public string|array|null $target = null,

0 commit comments

Comments
 (0)