| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class Handle |
||
| 19 | { |
||
| 20 | /** @var string */ |
||
| 21 | private $handle; |
||
| 22 | |||
| 23 | private function __construct(string $handle) |
||
| 24 | { |
||
| 25 | $this->handle = $handle; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __toString() |
||
| 29 | { |
||
| 30 | return $this->handle; |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function fromString(string $handle): self |
||
| 36 | } |
||
| 37 | } |
||
| 38 |