| 1 | <?php |
||
| 22 | trait TranslatorTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Translator. |
||
| 26 | * |
||
| 27 | * @var TranslatorInterface |
||
| 28 | */ |
||
| 29 | private $translator; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the translator. |
||
| 33 | * |
||
| 34 | * @return TranslatorInterface Returns the translator. |
||
| 35 | */ |
||
| 36 | public function getTranslator() { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the translator. |
||
| 42 | * |
||
| 43 | * @param TranslatorInterface $translator The translator. |
||
| 44 | */ |
||
| 45 | protected function setTranslator(TranslatorInterface $translator) { |
||
| 49 | |||
| 50 | } |
||
| 51 |