1 | <?php |
||
19 | final class Fqsen |
||
20 | { |
||
21 | /** |
||
22 | * @var string full quallified class name |
||
23 | */ |
||
24 | private $fqsen; |
||
25 | |||
26 | /** |
||
27 | * @var string name of the element without path. |
||
28 | */ |
||
29 | private $name; |
||
30 | |||
31 | /** |
||
32 | * Initializes the object. |
||
33 | * |
||
34 | * @param string $fqsen |
||
35 | * |
||
36 | * @throws \InvalidArgumentException when $fqsen is not matching the format. |
||
37 | */ |
||
38 | 17 | public function __construct($fqsen) |
|
62 | |||
63 | /** |
||
64 | * converts this class to string. |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | 1 | public function __toString() |
|
72 | |||
73 | /** |
||
74 | * Returns the name of the element without path. |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getName() |
||
82 | } |
||
83 |