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