| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 31 | public function runAfter($task) : self |
||
| 32 | { |
||
| 33 | if (!is_string($task) && !is_array($task)) { |
||
| 34 | throw new \InvalidArgumentException('Pass an array with the tasks or a single one.'); |
||
| 35 | } |
||
| 36 | |||
| 37 | is_string($task) ? $this->next[] = $task : $this->next = array_merge($this->next, $task); |
||
| 38 | |||
| 39 | return $this; |
||
| 40 | } |
||
| 41 | |||
| 51 | } |