| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)] |
||
| 18 | class Transform |
||
| 19 | { |
||
| 20 | private string|array $transformer; |
||
| 21 | private array $params; |
||
| 22 | |||
| 23 | public function __construct(string|array $transformer = '', array ...$params) |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getTransformer(): string|array |
||
| 30 | { |
||
| 31 | return $this->transformer; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getParams(): array |
||
| 37 | } |
||
| 38 | } |
||
| 39 |