1 | <?php |
||
16 | class TransformEvent extends Event |
||
17 | { |
||
18 | const PRE_TRANSFORM = 'fos_elastica.pre_transform'; |
||
19 | const POST_TRANSFORM = 'fos_elastica.post_transform'; |
||
20 | |||
21 | /** |
||
22 | * @var mixed |
||
23 | */ |
||
24 | private $document; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $fields; |
||
30 | |||
31 | /** |
||
32 | * @var mixed |
||
33 | */ |
||
34 | private $object; |
||
35 | |||
36 | /** |
||
37 | * @param mixed $document |
||
38 | * @param array $fields |
||
39 | * @param mixed $object |
||
40 | */ |
||
41 | 3 | public function __construct($document, array $fields, $object) |
|
47 | |||
48 | /** |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 3 | public function getDocument() |
|
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getFields() |
||
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function getObject() |
||
71 | |||
72 | /** |
||
73 | * @param mixed $document |
||
74 | */ |
||
75 | public function setDocument($document) |
||
79 | } |
||
80 |