Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class ParametrisedRunner implements Runner |
||
8 | { |
||
9 | private $decoratedRunner; |
||
10 | private $parameters; |
||
11 | |||
12 | public function __construct(Runner $decoratedRunner, array $parameters) |
||
13 | { |
||
14 | $this->decoratedRunner = $decoratedRunner; |
||
15 | $this->parameters = $parameters; |
||
16 | } |
||
17 | |||
18 | 4 | public function run(Command $command): int |
|
33 | } |
||
34 | }); |
||
35 | } |
||
36 | } |
||
37 |