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