39 lines
652 B
PHP
39 lines
652 B
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the FOSElasticaBundle project.
|
|
*
|
|
* (c) Tim Nagel <tim@nagel.com.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 IndexEvent extends Event
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $index;
|
|
|
|
/**
|
|
* @param string $index
|
|
*/
|
|
public function __construct($index)
|
|
{
|
|
$this->index = $index;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getIndex()
|
|
{
|
|
return $this->index;
|
|
}
|
|
}
|