1 | <?php |
||
11 | trait QualifiedNamePart { |
||
12 | |||
13 | use NamePart; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $namespace; |
||
17 | |||
18 | /** |
||
19 | * Sets the namespace |
||
20 | * |
||
21 | * @param string $namespace |
||
22 | * @return $this |
||
23 | */ |
||
24 | 10 | public function setNamespace($namespace) { |
|
29 | |||
30 | /** |
||
31 | * In contrast to setName(), this method accepts the fully qualified name |
||
32 | * including the namespace. |
||
33 | * |
||
34 | * @param string $name |
||
35 | * @return $this |
||
36 | */ |
||
37 | 63 | public function setQualifiedName($name) { |
|
50 | |||
51 | /** |
||
52 | * Returns the namespace |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 24 | public function getNamespace() { |
|
59 | |||
60 | /** |
||
61 | * Returns the qualified name |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | 5 | public function getQualifiedName() { |
|
72 | } |
||
73 |