for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the FOSElasticaBundle project.
*
* (c) Infinite Networks Pty Ltd <http://www.infinite.net.au>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\ElasticaBundle\Event;
use Symfony\Component\EventDispatcher\Event;
class TransformEvent extends Event
{
* @Event("FOS\ElasticaBundle\Event\TransformEvent")
const PRE_TRANSFORM = 'fos_elastica.pre_transform';
const POST_TRANSFORM = 'fos_elastica.post_transform';
* @var mixed
private $document;
* @var array
private $fields;
private $object;
* @param mixed $document
* @param array $fields
* @param mixed $object
public function __construct($document, array $fields, $object)
$this->document = $document;
$this->fields = $fields;
$this->object = $object;
}
* @return mixed
public function getDocument()
return $this->document;
* @return array
public function getFields()
return $this->fields;
public function getObject()
return $this->object;
public function setDocument($document)