1 | <?php |
||
21 | class UseClass extends ElementAbstract implements UseInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * The class name. |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $className; |
||
29 | |||
30 | /** |
||
31 | * The alias for class name. |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $alias; |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | 7 | public function init() |
|
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | * @return PhpClassInterface |
||
46 | */ |
||
47 | 1 | public function getParent() |
|
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | * @return UseInterface |
||
55 | */ |
||
56 | 1 | public function setParent(ElementInterface $parent) |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 2 | public function setAlias($alias) |
|
74 | |||
75 | /** |
||
76 | * Gets the alias name. |
||
77 | * @return string |
||
78 | */ |
||
79 | 4 | public function getAlias() |
|
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | 4 | public function hasAlias() |
|
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | 4 | public function setClassName($className) |
|
103 | |||
104 | /** |
||
105 | * @inheritdoc |
||
106 | */ |
||
107 | 4 | public function getClassName() |
|
111 | |||
112 | /** |
||
113 | * @inheritdoc |
||
114 | */ |
||
115 | 4 | public function toString() |
|
125 | } |
||
126 |