for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\ElasticsearchBundle\Event;
use Symfony\Component\EventDispatcher\Event;
class BulkEvent extends Event
{
/**
* @var string
private $operation;
* @var string|array
private $type;
* @var array
private $query;
* @param string $operation
* @param string|array $type
* @param array $query
public function __construct($operation, $type, array $query)
$this->type = $type;
$this->query = $query;
$this->operation = $operation;
}
* @return array|string
public function getType()
return $this->type;
* @param array|string $type
public function setType($type)
* @return array
public function getQuery()
return $this->query;
public function setQuery($query)
public function getOperation()
return $this->operation;
public function setOperation($operation)