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