1 | <?php |
||
24 | final class Fqsen |
||
25 | { |
||
26 | /** |
||
27 | * @var string full quallified class name |
||
28 | */ |
||
29 | private $fqsen; |
||
30 | |||
31 | /** |
||
32 | * @var string name of the element without path. |
||
33 | */ |
||
34 | private $name; |
||
35 | |||
36 | /** |
||
37 | * Initializes the object. |
||
38 | * |
||
39 | * @throws InvalidArgumentException when $fqsen is not matching the format. |
||
40 | */ |
||
41 | 17 | public function __construct(string $fqsen) |
|
69 | |||
70 | /** |
||
71 | * converts this class to string. |
||
72 | */ |
||
73 | 1 | public function __toString(): string |
|
77 | |||
78 | /** |
||
79 | * Returns the name of the element without path. |
||
80 | */ |
||
81 | public function getName(): string |
||
85 | } |
||
86 |