* * 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; /** * Type ResetEvent. * * @author Oleg Andreyev */ class TypeResetEvent extends IndexEvent { const PRE_TYPE_RESET = 'elastica.index.type_pre_reset'; const POST_TYPE_RESET = 'elastica.index.type_post_reset'; /** * @var string */ private $type; /** * @param string $index * @param string $type */ public function __construct($index, $type) { parent::__construct($index); $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } }