| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class SwitchHydrator implements HydratorInterface |
||
| 12 | { |
||
| 13 | /** @var ValidatorInterface */ |
||
| 14 | private $switchValidator; |
||
| 15 | |||
| 16 | 22 | public function __construct(ValidatorInterface $switchValidator) |
|
| 17 | { |
||
| 18 | 22 | $this->switchValidator = $switchValidator; |
|
| 19 | 22 | } |
|
| 20 | |||
| 21 | 18 | public function supports(string $type): bool |
|
| 22 | { |
||
| 23 | 18 | return $type === 'switch'; |
|
| 24 | } |
||
| 25 | |||
| 26 | 15 | public function hydrate(array $tile): Tile |
|
| 29 | } |
||
| 30 | |||
| 31 | 16 | public function validate(array $tile): void |
|
| 34 | 15 | } |
|
| 35 | } |
||
| 36 |