Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class Nested implements Mapping |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $key; |
||
11 | /** @var Mapping */ |
||
12 | private $mapping; |
||
13 | |||
14 | private function __construct(string $key, Mapping $mapping) |
||
15 | { |
||
16 | $this->key = $key; |
||
17 | $this->mapping = $mapping; |
||
18 | } |
||
19 | |||
20 | public static function inKey(string $key, Mapping $mapping): self |
||
21 | { |
||
22 | return new self($key, $mapping); |
||
23 | } |
||
24 | |||
25 | public function name(): string |
||
28 | } |
||
29 | |||
30 | public function value(array $data, $owner = null) |
||
34 | } |
||
35 | } |
||
36 |