Passed
Push — main ( a74a35...8a07cd )
by Fractal
03:04
created

EmptyMapper::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FRZB\Component\RequestMapper\Mapper;
6
7
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
8
9
#[AutoconfigureTag(MapperInterface::class)]
10
class EmptyMapper implements MapperInterface
11
{
12
    public function __invoke(string $typeName, mixed $value = null, array $parameters = []): mixed
13
    {
14
        return null;
15
    }
16
17
    public function canMap(string $typeName, mixed $value = null): bool
18
    {
19
        return true;
20
    }
21
22 1
    public static function getPriority(): int
23
    {
24 1
        return 0;
25
    }
26
}
27