1 | <?php |
||
16 | class TransformEvent extends Event |
||
17 | { |
||
18 | /** |
||
19 | * @Event("FOS\ElasticaBundle\Event\TransformEvent") |
||
20 | */ |
||
21 | const PRE_TRANSFORM = 'fos_elastica.pre_transform'; |
||
22 | |||
23 | /** |
||
24 | * @Event("FOS\ElasticaBundle\Event\TransformEvent") |
||
25 | */ |
||
26 | const POST_TRANSFORM = 'fos_elastica.post_transform'; |
||
27 | |||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | private $document; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $fields; |
||
37 | |||
38 | /** |
||
39 | * @var mixed |
||
40 | */ |
||
41 | private $object; |
||
42 | |||
43 | /** |
||
44 | * @param mixed $document |
||
45 | * @param array $fields |
||
46 | * @param mixed $object |
||
47 | */ |
||
48 | 3 | public function __construct($document, array $fields, $object) |
|
54 | |||
55 | /** |
||
56 | * @return mixed |
||
57 | */ |
||
58 | 3 | public function getDocument() |
|
62 | |||
63 | /** |
||
64 | * @return array |
||
65 | */ |
||
66 | public function getFields() |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getObject() |
||
78 | |||
79 | /** |
||
80 | * @param mixed $document |
||
81 | */ |
||
82 | public function setDocument($document) |
||
86 | } |
||
87 |