Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | final class Work implements Command |
||
15 | { |
||
16 | private $monitor; |
||
17 | |||
18 | 8 | public function __construct(Monitor $monitor) |
|
19 | { |
||
20 | 8 | $this->monitor = $monitor; |
|
21 | 8 | } |
|
22 | |||
23 | 2 | public function __invoke(Environment $env, Arguments $arguments, Options $options): void |
|
24 | { |
||
25 | 2 | ($this->monitor)($env); |
|
26 | 2 | } |
|
27 | |||
28 | 4 | public function __toString(): string |
|
31 | } |
||
32 | } |
||
33 |