Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | final class WatchCurrentGitBranch implements Agent |
||
24 | { |
||
25 | private $git; |
||
26 | private $protocol; |
||
27 | private $watch; |
||
28 | private $ipc; |
||
29 | private $monitor; |
||
30 | |||
31 | 8 | public function __construct( |
|
32 | Git $git, |
||
33 | Protocol $protocol, |
||
34 | Watch $watch, |
||
35 | IPC $ipc, |
||
36 | Name $monitor |
||
37 | ) { |
||
38 | 8 | $this->git = $git; |
|
39 | 8 | $this->protocol = $protocol; |
|
40 | 8 | $this->watch = $watch; |
|
41 | 8 | $this->ipc = $ipc; |
|
42 | 8 | $this->monitor = $monitor; |
|
43 | 8 | } |
|
44 | |||
45 | 4 | public function __invoke(PathInterface $project): void |
|
69 | 4 | }); |
|
70 | 4 | } |
|
72 |