Conditions | 3 |
Paths | 6 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function start() |
||
43 | { |
||
44 | $startTime = microtime(true); |
||
45 | |||
46 | try { |
||
47 | $this->output = $this->task instanceof Task |
||
48 | ? $this->task->run() |
||
49 | : call_user_func($this->task); |
||
50 | } catch (Throwable $throwable) { |
||
51 | $this->errorOutput = $throwable; |
||
52 | } finally { |
||
53 | $this->executionTime = microtime(true) - $startTime; |
||
54 | } |
||
55 | } |
||
56 | |||
86 |