1 | <?php |
||
40 | class PathDescriptor extends AbstractNameAwareDescriptor implements PathDescriptorInterface |
||
41 | { |
||
42 | |||
43 | /** |
||
44 | * The trait with the references descriptors. |
||
45 | * |
||
46 | * @var AppserverIo\Description\DescriptorReferencesTrait |
||
47 | */ |
||
48 | use DescriptorReferencesTrait; |
||
49 | |||
50 | /** |
||
51 | * The beans class name. |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $className; |
||
56 | |||
57 | /** |
||
58 | * The array with the action methods. |
||
59 | * |
||
60 | * @var array |
||
61 | */ |
||
62 | protected $actions = array(); |
||
63 | |||
64 | /** |
||
65 | * The array with the action results. |
||
66 | * |
||
67 | * @var array |
||
68 | */ |
||
69 | protected $results = array(); |
||
70 | |||
71 | /** |
||
72 | * Sets the beans class name. |
||
73 | * |
||
74 | * @param string $className The beans class name |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | 4 | public function setClassName($className) |
|
82 | |||
83 | /** |
||
84 | * Returns the beans class name. |
||
85 | * |
||
86 | * @return string The beans class name |
||
87 | */ |
||
88 | 2 | public function getClassName() |
|
92 | |||
93 | /** |
||
94 | * Adds a action method configuration. |
||
95 | * |
||
96 | * @param \AppserverIo\Routlt\Description\ActionDescriptorInterface $action The action method configuration |
||
97 | * |
||
98 | * @return void |
||
99 | */ |
||
100 | 4 | public function addAction(ActionDescriptorInterface $action) |
|
107 | |||
108 | /** |
||
109 | * Sets the array with the action methods. |
||
110 | * |
||
111 | * @param array $actions The action methods |
||
112 | * |
||
113 | * @return void |
||
114 | */ |
||
115 | 1 | public function setActions(array $actions) |
|
119 | |||
120 | /** |
||
121 | * The array with the action methods. |
||
122 | * |
||
123 | * @return array The action methods |
||
124 | */ |
||
125 | 2 | public function getActions() |
|
129 | |||
130 | /** |
||
131 | * Adds a result action configuration. |
||
132 | * |
||
133 | * @param \AppserverIo\Routlt\Description\ResultConfigurationDescriptorInterface $result The action result configuration |
||
134 | * |
||
135 | * @return void |
||
136 | */ |
||
137 | 3 | public function addResult(ResultConfigurationDescriptorInterface $result) |
|
141 | |||
142 | /** |
||
143 | * Sets the array with the action results. |
||
144 | * |
||
145 | * @param array $results The action results |
||
146 | * |
||
147 | * @return void |
||
148 | */ |
||
149 | 1 | public function setResults(array $results) |
|
153 | |||
154 | /** |
||
155 | * The array with the action results. |
||
156 | * |
||
157 | * @return array The action results |
||
158 | */ |
||
159 | 2 | public function getResults() |
|
163 | |||
164 | /** |
||
165 | * Returns a new descriptor instance. |
||
166 | * |
||
167 | * @return \AppserverIo\Routlt\Description\PathDescriptorInterface The descriptor instance |
||
168 | */ |
||
169 | 1 | public static function newDescriptorInstance() |
|
173 | |||
174 | /** |
||
175 | * Returns a new annotation instance for the passed reflection class. |
||
176 | * |
||
177 | * @param \AppserverIo\Lang\Reflection\ClassInterface $reflectionClass The reflection class with the bean configuration |
||
178 | * |
||
179 | * @return \AppserverIo\Lang\Reflection\AnnotationInterface The reflection annotation |
||
180 | */ |
||
181 | 4 | protected function newAnnotationInstance(ClassInterface $reflectionClass) |
|
185 | |||
186 | /** |
||
187 | * Initializes the bean configuration instance from the passed reflection class instance. |
||
188 | * |
||
189 | * @param \AppserverIo\Lang\Reflection\ClassInterface $reflectionClass The reflection class with the bean configuration |
||
190 | * |
||
191 | * @return \AppserverIo\Routlt\Description\PathDescriptorInterface The initialized descriptor |
||
192 | */ |
||
193 | 6 | public function fromReflectionClass(ClassInterface $reflectionClass) |
|
270 | |||
271 | /** |
||
272 | * Initializes a bean configuration instance from the passed deployment descriptor node. |
||
273 | * |
||
274 | * @param \SimpleXmlElement $node The deployment node with the bean configuration |
||
275 | * |
||
276 | * @return \AppserverIo\Routlt\Description\PathDescriptorInterface The initialized descriptor |
||
277 | */ |
||
278 | 1 | public function fromDeploymentDescriptor(\SimpleXmlElement $node) |
|
281 | |||
282 | /** |
||
283 | * Initializes a bean configuration instance from the passed configuration node. |
||
284 | * |
||
285 | * @param \AppserverIo\Configuration\Interfaces\NodeInterface $node The configuration node with the bean configuration |
||
286 | * |
||
287 | * @return \AppserverIo\Routlt\Description\PathDescriptorInterface The initialized descriptor |
||
288 | */ |
||
289 | 1 | public function fromConfiguration(NodeInterface $node) |
|
292 | |||
293 | /** |
||
294 | * Merges the passed configuration into this one. Configuration values |
||
295 | * of the passed configuration will overwrite the this one. |
||
296 | * |
||
297 | * @param \AppserverIo\Routlt\Description\PathDescriptorInterface $pathDescriptor The configuration to merge |
||
298 | * |
||
299 | * @return void |
||
300 | * @throws \AppserverIo\Routlt\Description\DescriptorException Is thrown if the passed descriptor has a different class name |
||
301 | */ |
||
302 | 2 | public function merge(PathDescriptorInterface $pathDescriptor) |
|
340 | } |
||
341 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.