| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class DifferentKey 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 use(string $key, Mapping $mapping): self |
||
| 23 | } |
||
| 24 | |||
| 25 | public function name(): string |
||
| 28 | } |
||
| 29 | |||
| 30 | public function value(array $data, $owner = null) |
||
| 36 | } |
||
| 37 | } |
||
| 38 |