| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class PreDispatchTaskEvent extends Event |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var TaskDefinitionInterface |
||
| 13 | */ |
||
| 14 | private $task; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | private $preventDispatch; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * PreDispatchTaskEvent constructor. |
||
| 23 | * @param TaskDefinitionInterface $task |
||
| 24 | */ |
||
| 25 | public function __construct(TaskDefinitionInterface $task) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return TaskDefinitionInterface |
||
| 33 | */ |
||
| 34 | public function getTask(): TaskDefinitionInterface |
||
| 35 | { |
||
| 36 | return $this->task; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function isPreventDispatch(): bool |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param bool $preventDispatch |
||
| 49 | */ |
||
| 50 | public function setPreventDispatch(bool $preventDispatch) |
||
| 53 | } |
||
| 54 | } |