29 lines
522 B
PHP
29 lines
522 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Event;
|
||
|
|
||
|
use App\Core\Entity\EntityInterface;
|
||
|
use App\Core\Event\EntityManager\EntityManagerEvent as Event;
|
||
|
|
||
|
/**
|
||
|
* class EntityManagerEvent.
|
||
|
*
|
||
|
* @author Simon Vieille <simon@deblan.fr>
|
||
|
*/
|
||
|
class EntityManagerEvent extends Event
|
||
|
{
|
||
|
protected $params;
|
||
|
|
||
|
public function __construct(EntityInterface $entity, array $params = [])
|
||
|
{
|
||
|
$this->params = $params;
|
||
|
|
||
|
parent::__construct($entity);
|
||
|
}
|
||
|
|
||
|
public function getParams(): array
|
||
|
{
|
||
|
return $this->params;
|
||
|
}
|
||
|
}
|