| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class ParameterEventDiscriminator implements EventDiscriminator |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Event parameter name. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $parameter; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Expected event parameter value. |
||
| 29 | * |
||
| 30 | * @var mixed|null |
||
| 31 | */ |
||
| 32 | private $value; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * ParameterEventDiscriminator constructor. |
||
| 36 | * |
||
| 37 | * @param string $parameter |
||
| 38 | * @param mixed|null $value |
||
| 39 | */ |
||
| 40 | public function __construct(string $parameter, $value = null) |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function shouldEnqueue(Event $event): bool |
||
| 55 |