| 1 | <?php |
||
| 23 | class TranslationEvent extends Event |
||
| 24 | { |
||
| 25 | const POST_PERSIST = 'postPersist'; |
||
| 26 | const POST_UPDATE = 'postUpdate'; |
||
| 27 | const POST_REMOVE = 'postRemove'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var TranslationInterface |
||
| 31 | */ |
||
| 32 | private $translation; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param TranslationInterface $translation |
||
| 36 | */ |
||
| 37 | 11 | public function __construct(TranslationInterface $translation) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return TranslationInterface |
||
| 44 | */ |
||
| 45 | 6 | public function getTranslation() |
|
| 49 | } |
||
| 50 |