| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | final class ConditionalMapping implements Mapping |
||
| 11 | { |
||
| 12 | /** @var Satisfiable */ |
||
| 13 | private $condition; |
||
| 14 | /** @var Mapping */ |
||
| 15 | private $napping; |
||
| 16 | |||
| 17 | private function __construct(Satisfiable $condition, Mapping $napping) |
||
| 18 | { |
||
| 19 | $this->condition = $condition; |
||
| 20 | $this->napping = $napping; |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function ensureThat( |
||
| 28 | } |
||
| 29 | |||
| 30 | public function name(): string |
||
| 31 | { |
||
| 32 | return $this->napping->name(); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function value(array $data, $owner = null) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |