1 | <?php |
||
21 | class TranslationEditMessageEvent extends Event |
||
22 | { |
||
23 | /** |
||
24 | * @var Translation |
||
25 | */ |
||
26 | private $document; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | private $locale; |
||
32 | |||
33 | /** |
||
34 | * @param Translation $document |
||
35 | * @param array $locale |
||
36 | */ |
||
37 | public function __construct(Translation $document, $locale) |
||
38 | { |
||
39 | $this->document = $document; |
||
40 | $this->locale = $locale; |
||
41 | } |
||
42 | /** |
||
43 | * Returns document associated with the event. |
||
44 | * |
||
45 | * @return Translation |
||
46 | */ |
||
47 | public function getDocument() |
||
48 | { |
||
49 | return $this->document; |
||
50 | } |
||
51 | |||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getLocale() |
||
60 | } |
||
61 |