| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | #[AutoconfigureTag(MapperInterface::class)] |
||
| 11 | class SimpleMapper implements MapperInterface |
||
| 12 | { |
||
| 13 | 19 | public function __invoke(string $typeName, mixed $value = null, array $parameters = []): mixed |
|
| 14 | { |
||
| 15 | 19 | return $value; |
|
| 16 | } |
||
| 17 | |||
| 18 | 19 | public function canMap(string $typeName, mixed $value = null): bool |
|
| 19 | { |
||
| 20 | 19 | return !ClassHelper::isNotBuiltinAndExists($typeName); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public static function getPriority(): int |
|
| 26 | } |
||
| 27 | } |
||
| 28 |