Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
20 | class Remote implements \Stringable |
||
21 | { |
||
22 | private string $push; |
||
23 | |||
24 | public function __construct(private string $name, private string $fetch, string $push = null) |
||
27 | } |
||
28 | |||
29 | public function __toString(): string |
||
30 | { |
||
31 | return $this->name; |
||
32 | } |
||
33 | |||
34 | public function getFetchUrl(): string |
||
35 | { |
||
36 | return $this->fetch; |
||
37 | } |
||
38 | |||
39 | public function getPushUrl(): string |
||
42 | } |
||
43 | } |
||
44 |