| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 72.72% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class AnswersValidator |
||
| 8 | { |
||
| 9 | private LetterEncoderInterface $encoder; |
||
| 10 | |||
| 11 | public function __construct(LetterEncoderInterface $encoder) |
||
| 12 | { |
||
| 13 | $this->encoder = $encoder; |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @throws WrongAnswerException |
||
| 18 | */ |
||
| 19 | 2 | public function validate(array $answers): void |
|
| 31 | 1 | } |
|
| 32 | } |
||
| 33 |