| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class CheckedOutRepository |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $path; |
||
| 13 | |||
| 14 | private function __construct() |
||
| 15 | { |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function fromPath(string $path) : self |
||
| 19 | { |
||
| 20 | Assert::that($path . '/.git')->directory(); |
||
| 21 | $instance = new self(); |
||
| 22 | $instance->path = $path; |
||
| 23 | |||
| 24 | return $instance; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function __toString() : string |
||
| 30 | } |
||
| 31 | } |
||
| 32 |