| 1 | <?php |
||
| 18 | class IsActive extends AbstractPlugin |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var ManagerInterface The participation manager used to check participation. |
||
| 22 | */ |
||
| 23 | private $participationManager; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Initializes a new instance of this class. |
||
| 27 | * |
||
| 28 | * @param ManagerInterface $participationManager The participation manager used to check participation. |
||
| 29 | */ |
||
| 30 | public function __construct(ManagerInterface $participationManager) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Checks if the test with the given variant is active. |
||
| 37 | * |
||
| 38 | * @param string $test The identifier of the test to check for activity. |
||
| 39 | * @param string $variant The identifier of the variant to check for activity. |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function __invoke($test, $variant) |
||
| 46 | } |
||
| 47 |