for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FOSElasticaBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\ElasticaBundle\Event;
/**
* Index ResetEvent.
* @author Oleg Andreyev <[email protected]>
class IndexResetEvent extends IndexEvent
{
* @Event("FOS\ElasticaBundle\Event\IndexResetEvent")
const PRE_INDEX_RESET = 'elastica.index.pre_reset';
const POST_INDEX_RESET = 'elastica.index.post_reset';
* @var bool
private $force;
private $populating;
* @param string $index
* @param bool $populating
* @param bool $force
public function __construct($index, $populating, $force)
parent::__construct($index);
$this->force = $force;
$this->populating = $populating;
}
* @return bool
public function isForce()
return $this->force;
public function isPopulating()
return $this->populating;
public function setForce($force)