Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | abstract class PrimitiveMapping implements Mapping |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $name; |
||
13 | |||
14 | final private function __construct(string $name) |
||
15 | { |
||
16 | $this->name = $name; |
||
17 | } |
||
18 | |||
19 | public static function inProperty(string $name): Mapping |
||
20 | { |
||
21 | return new static($name); |
||
22 | } |
||
23 | |||
24 | public function name(): string |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param array $data |
||
31 | * @return mixed |
||
32 | * @throws MappingFailure |
||
33 | */ |
||
34 | final protected function my(array $data) |
||
38 | } |
||
39 | } |
||
40 |