@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * |
136 | 136 | * @implements \PEIP\INF\Context\Context |
137 | 137 | * @access public |
138 | - * @param \PEIP\INF\Context\Context_Plugin $plugin a plugin instance |
|
138 | + * @param \PEIP\INF\Context\ContextPlugin $plugin a plugin instance |
|
139 | 139 | */ |
140 | 140 | public function addPlugin(\PEIP\INF\Context\ContextPlugin $plugin){ |
141 | 141 | $plugin->init($this); |
@@ -167,7 +167,6 @@ discard block |
||
167 | 167 | * </config> |
168 | 168 | * |
169 | 169 | * @access public |
170 | - * @param XMLContext $config the config to include |
|
171 | 170 | */ |
172 | 171 | public function includeContext(XMLContext $context){ |
173 | 172 | $this->services = array_merge($this->services, $context->getServices()); |
@@ -178,7 +177,7 @@ discard block |
||
178 | 177 | * |
179 | 178 | * @see XMLContext::includeContext |
180 | 179 | * @access public |
181 | - * @param XMLContext $context the config to include |
|
180 | + * @param string $filePath |
|
182 | 181 | */ |
183 | 182 | public function includeContextFromFile($filePath){ |
184 | 183 | if(file_exists($filePath)){ |
@@ -357,7 +356,7 @@ discard block |
||
357 | 356 | * |
358 | 357 | * @access public |
359 | 358 | * @param $config |
360 | - * @return object the initialized service instance |
|
359 | + * @return \PEIP\INF\Context\ContextPlugin the initialized service instance |
|
361 | 360 | */ |
362 | 361 | public function createService($config){ |
363 | 362 | return ServiceFactory::createService($config); |
@@ -685,7 +684,7 @@ discard block |
||
685 | 684 | * |
686 | 685 | * @access protected |
687 | 686 | * @param object $config configuration object to create arguments from. |
688 | - * @return mixed build arguments |
|
687 | + * @return \PEIP\INF\Channel\Channel[] build arguments |
|
689 | 688 | */ |
690 | 689 | protected function getReplyHandlerArguments($config){ |
691 | 690 | $args = array( |
@@ -730,7 +729,8 @@ discard block |
||
730 | 729 | * |
731 | 730 | * @access protected |
732 | 731 | * @param string the configuration type ofthe channel (e.g.: 'reply', 'request') |
733 | - * @param object $config configuration object to return channel from. |
|
732 | + * @param object $config configuration object to return channel from. |
|
733 | + * @param string $type |
|
734 | 734 | * @return \PEIP\INF\Channel\Channel reply-channel |
735 | 735 | */ |
736 | 736 | public function doGetChannel($type, $config){ |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * @see GenericBuilder |
794 | 794 | * @static |
795 | 795 | * @access protected |
796 | - * @param object $className name of class to build instance for. |
|
796 | + * @param string $className name of class to build instance for. |
|
797 | 797 | * @param array $arguments arguments for the constructor |
798 | 798 | * @return object build and modified srvice instance |
799 | 799 | */ |
@@ -801,6 +801,10 @@ discard block |
||
801 | 801 | return GenericBuilder::getInstance($className)->build($arguments); |
802 | 802 | } |
803 | 803 | |
804 | + /** |
|
805 | + * @param string $type |
|
806 | + * @param string $name |
|
807 | + */ |
|
804 | 808 | protected static function hasPublicProperty($service, $type, $name){ |
805 | 809 | $reflection = GenericBuilder::getInstance(get_class($service))->getReflectionClass(); |
806 | 810 | if($reflection->{'has'.$type}($name) && $reflection->{'get'.$type}($name)->isPublic()){ |
@@ -71,7 +71,6 @@ |
||
71 | 71 | * notifies all listeners on a event on a subject |
72 | 72 | * |
73 | 73 | * @access public |
74 | - * @param string $name name of the event |
|
75 | 74 | * @param mixed $subject the subject |
76 | 75 | * @return |
77 | 76 | */ |
@@ -65,7 +65,6 @@ |
||
65 | 65 | * Disconnects all listeners. |
66 | 66 | * |
67 | 67 | * @access public |
68 | - * @param Callable|PEIP\INF\Handler\Handler $listener |
|
69 | 68 | * @return void |
70 | 69 | */ |
71 | 70 | public function disconnectAll(){ |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @access public |
24 | 24 | * @param string $name name of the event |
25 | 25 | * @param \PEIP\INF\Event\Event $object an event object |
26 | - * @return boolean |
|
26 | + * @return boolean|null |
|
27 | 27 | */ |
28 | 28 | public function notify($name, $object){ |
29 | 29 | if($object instanceof \PEIP\INF\Event\Event){ |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param array $headers headers of the event-object as key/value pairs |
54 | 54 | * @param string $eventClass event-class to create instances from |
55 | 55 | * @return |
56 | - * @see EventBuilder |
|
56 | + boolean|null @see EventBuilder |
|
57 | 57 | */ |
58 | 58 | public function buildAndNotify($name, $object, array $headers = array(), $eventClass = false, $type = false){ |
59 | 59 | if(!$this->hasListeners($name, ($object))){ |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @access public |
39 | 39 | * @param string $name name of the event |
40 | 40 | * @param \PEIP\INF\Event\Event $object an event object |
41 | - * @return boolean |
|
41 | + * @return boolean|null |
|
42 | 42 | */ |
43 | 43 | public function notify($name, $object){ |
44 | 44 | if($object instanceof \PEIP\INF\Event\Event){ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @access public |
163 | 163 | * @param $name |
164 | 164 | * @param $subject |
165 | - * @return mixed |
|
165 | + * @return \PEIP\INF\Handler\Handler |
|
166 | 166 | */ |
167 | 167 | public function notifyUntil($name, $subject){ |
168 | 168 | if($this->hasListeners($name, $subject)){ |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * @access protected |
206 | 206 | * @param $name |
207 | 207 | * @param $object |
208 | - * @return boolean |
|
208 | + * @return boolean|null |
|
209 | 209 | */ |
210 | 210 | protected static function doNotify(array $listeners, $subject){ |
211 | 211 | foreach($listeners as $listener){ |
@@ -49,7 +49,6 @@ |
||
49 | 49 | * @access public |
50 | 50 | * @param mixed $subject the subject for the event |
51 | 51 | * @param string $name the name of the event |
52 | - * @param array|ArrayAccess $headers the headers for the event |
|
53 | 52 | */ |
54 | 53 | public function __construct($subject, $name, $parameters = array(), $type = false){ |
55 | 54 | parent::__construct($subject, Test::ensureArrayAccess($parameters)); |
@@ -55,7 +55,6 @@ discard block |
||
55 | 55 | * sets the channel to send requests from the gateway |
56 | 56 | * |
57 | 57 | * @access public |
58 | - * @param \PEIP\INF\Channel\Channel $replyChannel The default channel to receive requests from the gateway |
|
59 | 58 | * @return |
60 | 59 | */ |
61 | 60 | public function setRequestChannel(\PEIP\INF\Channel\Channel $requestChannel){ |
@@ -108,7 +107,7 @@ discard block |
||
108 | 107 | * sends and receives a request/message through the gateway |
109 | 108 | * |
110 | 109 | * @access public |
111 | - * @param mixed $content the content/payload for the message to send |
|
110 | + * @param \Order $content the content/payload for the message to send |
|
112 | 111 | * @return mixed content/payload of the received message |
113 | 112 | */ |
114 | 113 | public function sendAndReceive($content){ |
@@ -33,10 +33,10 @@ |
||
33 | 33 | * Send a message, blocking until either the message is accepted or the |
34 | 34 | * specified timeout period elapses. |
35 | 35 | * |
36 | - * @param message the {@link Message} to send |
|
37 | - * @param timeout the timeout in milliseconds |
|
36 | + * @param message \PEIP\INF\Message\Message {@link Message} to send |
|
37 | + * @param timeout integer timeout in milliseconds |
|
38 | 38 | * |
39 | - * @return <code>true</code> if the message is sent successfully, |
|
39 | + * @return null|boolean if the message is sent successfully, |
|
40 | 40 | * <code>false</false> if the specified timeout period elapses or |
41 | 41 | * the send is interrupted |
42 | 42 | */ |