murph-core/src/core/Event/Ab/AbTestEvent.php
2022-05-20 13:50:04 +02:00

30 lines
505 B
PHP

<?php
namespace App\Core\Event\Ab;
use App\Core\Ab\AbTest;
use Symfony\Contracts\EventDispatcher\Event;
/**
* class AbTestEvent.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class AbTestEvent extends Event
{
public const INIT_EVENT = 'ab_test.init';
public const RUN_EVENT = 'ab_test.run';
protected AbTest $test;
public function __construct(AbTest $test)
{
$this->test = $test;
}
public function getTest(): AbTest
{
return $this->test;
}
}