| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | trait TranslatorTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Translator. |
||
| 26 | * |
||
| 27 | * @var TranslatorInterface|null |
||
| 28 | */ |
||
| 29 | private $translator; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the translator. |
||
| 33 | * |
||
| 34 | * @return TranslatorInterface|null Returns the translator. |
||
| 35 | */ |
||
| 36 | public function getTranslator(): ?TranslatorInterface { |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the translator. |
||
| 42 | * |
||
| 43 | * @param TranslatorInterface|null $translator The translator. |
||
| 44 | * @return self Returns this instance. |
||
| 45 | */ |
||
| 46 | protected function setTranslator(?TranslatorInterface $translator): self { |
||
| 51 |