43 lines
768 B
PHP
43 lines
768 B
PHP
<?php
|
|
namespace Trinity\Bundle\SearchBundle\Event;
|
|
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
use Trinity\Bundle\SearchBundle\Model\IndexableInterface;
|
|
|
|
class LuceneEvent extends Event
|
|
{
|
|
protected $object = null;
|
|
protected $index = null;
|
|
|
|
/**
|
|
* @param null|string $index
|
|
*/
|
|
public function setIndex($index)
|
|
{
|
|
$this->index = $index;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getIndex()
|
|
{
|
|
return $this->index;
|
|
}
|
|
|
|
/**
|
|
* @param $object
|
|
*/
|
|
public function setObject(IndexableInterface $object)
|
|
{
|
|
$this->object = $object;
|
|
}
|
|
|
|
/**
|
|
* @return null|IndexableInterface
|
|
*/
|
|
public function getObject()
|
|
{
|
|
return $this->object;
|
|
}
|
|
} |