| 1 | <?php |
||
| 13 | abstract class AbstractTask implements TaskInterface |
||
| 14 | { |
||
| 15 | private $next = []; |
||
| 16 | |||
| 17 | public function __invoke(array $params = []) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Indicates what task must be runned after this one |
||
| 26 | * |
||
| 27 | * @param string|array $task |
||
| 28 | * |
||
| 29 | * @return self |
||
| 30 | */ |
||
| 31 | public function runAfter($task) : self |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Checks if after this task, another one will be executed |
||
| 44 | * |
||
| 45 | * @return boolean |
||
| 46 | */ |
||
| 47 | public function hasNext() : bool |
||
| 51 | } |