| 1 | <?php |
||
| 25 | class TransformEvent extends Event |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @Event("FOS\ElasticaBundle\Event\TransformEvent") |
||
| 29 | */ |
||
| 30 | const PRE_TRANSFORM = 'fos_elastica.pre_transform'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @Event("FOS\ElasticaBundle\Event\TransformEvent") |
||
| 34 | */ |
||
| 35 | const POST_TRANSFORM = 'fos_elastica.post_transform'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var mixed |
||
| 39 | */ |
||
| 40 | private $document; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | private $fields; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var mixed |
||
| 49 | */ |
||
| 50 | private $object; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param mixed $document |
||
| 54 | * @param array $fields |
||
| 55 | * @param mixed $object |
||
| 56 | */ |
||
| 57 | 3 | public function __construct($document, array $fields, $object) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @return mixed |
||
| 66 | */ |
||
| 67 | 3 | public function getDocument() |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @return array |
||
| 74 | */ |
||
| 75 | public function getFields() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | public function getObject() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param mixed $document |
||
| 90 | */ |
||
| 91 | public function setDocument($document) |
||
| 95 | } |
||
| 96 |