@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * |
142 | 142 | * @implements \PEIP\INF\Context\Context |
143 | 143 | * @access public |
144 | - * @param \PEIP\INF\Context\Context_Plugin $plugin a plugin instance |
|
144 | + * @param \PEIP\INF\Context\ContextPlugin $plugin a plugin instance |
|
145 | 145 | */ |
146 | 146 | public function addPlugin(\PEIP\INF\Context\ContextPlugin $plugin){ |
147 | 147 | $plugin->init($this); |
@@ -173,7 +173,6 @@ discard block |
||
173 | 173 | * </config> |
174 | 174 | * |
175 | 175 | * @access public |
176 | - * @param XMLContext $config the config to include |
|
177 | 176 | */ |
178 | 177 | public function includeContext(XMLContext $context){ |
179 | 178 | $this->services = array_merge($this->services, $context->getServices()); |
@@ -184,7 +183,7 @@ discard block |
||
184 | 183 | * |
185 | 184 | * @see XMLContext::includeContext |
186 | 185 | * @access public |
187 | - * @param XMLContext $context the config to include |
|
186 | + * @param string $filePath |
|
188 | 187 | */ |
189 | 188 | public function includeContextFromFile($filePath){ |
190 | 189 | if(file_exists($filePath)){ |
@@ -363,7 +362,7 @@ discard block |
||
363 | 362 | * |
364 | 363 | * @access public |
365 | 364 | * @param $config |
366 | - * @return object the initialized service instance |
|
365 | + * @return \PEIP\INF\Context\ContextPlugin the initialized service instance |
|
367 | 366 | */ |
368 | 367 | public function createService($config){ |
369 | 368 | return ServiceFactory::createService($config); |
@@ -692,7 +691,7 @@ discard block |
||
692 | 691 | * |
693 | 692 | * @access protected |
694 | 693 | * @param object $config configuration object to create arguments from. |
695 | - * @return mixed build arguments |
|
694 | + * @return \PEIP\INF\Channel\Channel[] build arguments |
|
696 | 695 | */ |
697 | 696 | protected function getReplyHandlerArguments($config){ |
698 | 697 | $args = array( |
@@ -737,7 +736,8 @@ discard block |
||
737 | 736 | * |
738 | 737 | * @access protected |
739 | 738 | * @param string the configuration type ofthe channel (e.g.: 'reply', 'request') |
740 | - * @param object $config configuration object to return channel from. |
|
739 | + * @param object $config configuration object to return channel from. |
|
740 | + * @param string $type |
|
741 | 741 | * @return \PEIP\INF\Channel\Channel reply-channel |
742 | 742 | */ |
743 | 743 | public function doGetChannel($type, $config){ |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | * @see GenericBuilder |
833 | 833 | * @static |
834 | 834 | * @access protected |
835 | - * @param object $className name of class to build instance for. |
|
835 | + * @param string $className name of class to build instance for. |
|
836 | 836 | * @param array $arguments arguments for the constructor |
837 | 837 | * @return object build and modified srvice instance |
838 | 838 | */ |
@@ -840,6 +840,10 @@ discard block |
||
840 | 840 | return GenericBuilder::getInstance($className)->build($arguments); |
841 | 841 | } |
842 | 842 | |
843 | + /** |
|
844 | + * @param string $type |
|
845 | + * @param string $name |
|
846 | + */ |
|
843 | 847 | protected static function hasPublicProperty($service, $type, $name){ |
844 | 848 | $reflection = GenericBuilder::getInstance(get_class($service))->getReflectionClass(); |
845 | 849 | if($reflection->{'has'.$type}($name) && $reflection->{'get'.$type}($name)->isPublic()){ |
@@ -19,6 +19,9 @@ |
||
19 | 19 | protected $config; |
20 | 20 | |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $config |
|
24 | + */ |
|
22 | 25 | public function __construct($config){ //print_r((array)simplexml_load_string($config)); |
23 | 26 | $this->config = ($config); |
24 | 27 | } |
@@ -83,7 +83,6 @@ |
||
83 | 83 | * @param ObjectEventDispatcher $dispatcher the dispatcher to dispatch the event |
84 | 84 | * @param mixed $subject the subject for the event |
85 | 85 | * @param string $name the name of the event |
86 | - * @param array $parameters the headers for the event |
|
87 | 86 | * @return |
88 | 87 | */ |
89 | 88 | public function buildAndDispatch(ObjectEventDispatcher $dispatcher, $subject, $name, array $headers = array()){ |
@@ -56,7 +56,6 @@ discard block |
||
56 | 56 | * sets the channel to send requests from the gateway |
57 | 57 | * |
58 | 58 | * @access public |
59 | - * @param \PEIP\INF\Channel\Channel $replyChannel The default channel to receive requests from the gateway |
|
60 | 59 | * @return |
61 | 60 | */ |
62 | 61 | public function setRequestChannel(\PEIP\INF\Channel\Channel $requestChannel){ |
@@ -109,7 +108,7 @@ discard block |
||
109 | 108 | * sends and receives a request/message through the gateway |
110 | 109 | * |
111 | 110 | * @access public |
112 | - * @param mixed $content the content/payload for the message to send |
|
111 | + * @param \Order $content the content/payload for the message to send |
|
113 | 112 | * @return mixed content/payload of the received message |
114 | 113 | */ |
115 | 114 | public function sendAndReceive($content){ |
@@ -188,7 +188,7 @@ |
||
188 | 188 | |
189 | 189 | /** |
190 | 190 | * @access protected |
191 | - * @param $commandName |
|
191 | + * @param string $commandName |
|
192 | 192 | * @param $callable |
193 | 193 | * @return |
194 | 194 | */ |