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