62 lines
1.1 KiB
PHP
62 lines
1.1 KiB
PHP
<?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;
|
|
|
|
/**
|
|
* Type ResetEvent.
|
|
*
|
|
* @author Oleg Andreyev <oleg.andreyev@intexsys.lv>
|
|
*/
|
|
class TypeResetEvent extends Event
|
|
{
|
|
const PRE_TYPE_RESET = 'elastica.index.type_pre_reset';
|
|
const POST_TYPE_RESET = 'elastica.index.type_post_reset';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $index;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $type;
|
|
|
|
/**
|
|
* @param string $index
|
|
* @param string $type
|
|
*/
|
|
public function __construct($index, $type)
|
|
{
|
|
$this->type = $type;
|
|
$this->index = $index;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getIndex()
|
|
{
|
|
return $this->index;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
}
|