Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
58 | private function checkTranslator() |
||
59 | { |
||
60 | if (! $this->translator instanceof TranslatorInterface) { |
||
61 | $name = __CLASS__; |
||
62 | throw new TranslatorNotSetException( |
||
63 | "The translator property was not set. Check that you have set the translator ". |
||
64 | "property in {$name} class before using translate methods." |
||
65 | ); |
||
66 | } |
||
67 | } |
||
68 | } |