1 | <?php |
||
39 | class ResultDescriptor extends AbstractNameAwareDescriptor implements ResultDescriptorInterface |
||
40 | { |
||
41 | |||
42 | /** |
||
43 | * The trait with the references descriptors. |
||
44 | * |
||
45 | * @var AppserverIo\Description\DescriptorReferencesTrait |
||
46 | */ |
||
47 | use DescriptorReferencesTrait; |
||
48 | |||
49 | /** |
||
50 | * The beans class name. |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $className; |
||
55 | |||
56 | /** |
||
57 | * Sets the beans class name. |
||
58 | * |
||
59 | * @param string $className The beans class name |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | public function setClassName($className) |
||
67 | |||
68 | /** |
||
69 | * Returns the beans class name. |
||
70 | * |
||
71 | * @return string The beans class name |
||
72 | */ |
||
73 | public function getClassName() |
||
77 | |||
78 | /** |
||
79 | * Returns a new descriptor instance. |
||
80 | * |
||
81 | * @return \AppserverIo\Routlt\Description\ResultDescriptorInterface The descriptor instance |
||
82 | */ |
||
83 | public static function newDescriptorInstance() |
||
87 | |||
88 | /** |
||
89 | * Returns a new annotation instance for the passed reflection class. |
||
90 | * |
||
91 | * @param \AppserverIo\Lang\Reflection\ClassInterface $reflectionClass The reflection class with the bean configuration |
||
92 | * |
||
93 | * @return \AppserverIo\Lang\Reflection\AnnotationInterface The reflection annotation |
||
94 | */ |
||
95 | protected function newAnnotationInstance(ClassInterface $reflectionClass) |
||
99 | |||
100 | /** |
||
101 | * Initializes the bean configuration instance from the passed reflection class instance. |
||
102 | * |
||
103 | * @param \AppserverIo\Lang\Reflection\ClassInterface $reflectionClass The reflection class with the bean configuration |
||
104 | * |
||
105 | * @return \AppserverIo\Routlt\Description\PathDescriptorInterface The initialized descriptor |
||
106 | */ |
||
107 | public function fromReflectionClass(ClassInterface $reflectionClass) |
||
159 | |||
160 | /** |
||
161 | * Initializes the result configuration instance from the passed reflection annotation instance. |
||
162 | * |
||
163 | * @param \AppserverIo\Lang\Reflection\AnnotationInterface $reflectionAnnotation The reflection annotation with the result configuration |
||
164 | * |
||
165 | * @return \AppserverIo\Routlt\Description\ResultDescriptorInterface The initialized descriptor |
||
166 | */ |
||
167 | public function fromReflectionAnnotation(AnnotationInterface $reflectionAnnotation) |
||
170 | |||
171 | /** |
||
172 | * Initializes a action configuration instance from the passed deployment descriptor node. |
||
173 | * |
||
174 | * @param \SimpleXmlElement $node The deployment node with the action configuration |
||
175 | * |
||
176 | * @return \AppserverIo\Routlt\Description\ActionDescriptorInterface The initialized descriptor |
||
177 | */ |
||
178 | public function fromDeploymentDescriptor(\SimpleXmlElement $node) |
||
181 | |||
182 | /** |
||
183 | * Initializes a action configuration instance from the passed configuration node. |
||
184 | * |
||
185 | * @param \AppserverIo\Configuration\Interfaces\NodeInterface $node The configuration node with the action configuration |
||
186 | * |
||
187 | * @return \AppserverIo\Routlt\Description\ActionDescriptorInterface The initialized descriptor |
||
188 | */ |
||
189 | public function fromConfiguration(NodeInterface $node) |
||
192 | |||
193 | /** |
||
194 | * Merges the passed configuration into this one. Configuration values |
||
195 | * of the passed configuration will overwrite the this one. |
||
196 | * |
||
197 | * @param \AppserverIo\Routlt\Description\ResultDescriptorInterface $resultDescriptor The configuration to merge |
||
198 | * |
||
199 | * @return void |
||
200 | * @throws \AppserverIo\Routlt\Description\DescriptorException Is thrown if the passed descriptor has a different method name |
||
201 | */ |
||
202 | public function merge(ResultDescriptorInterface $resultDescriptor) |
||
220 | } |
||
221 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.