Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class ClassName |
||
20 | { |
||
21 | /** @var string */ |
||
22 | private $className; |
||
23 | |||
24 | private function __construct(string $className) |
||
25 | { |
||
26 | Assertion::string($className, 'ClassName must be a string'); |
||
27 | |||
28 | $this->className = Inflector::classify($className); |
||
29 | } |
||
30 | |||
31 | public function __toString(): string |
||
34 | } |
||
35 | |||
36 | public static function fromString(string $className): self |
||
41 |