@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @return |
44 | 44 | */ |
45 | 45 | public function handle($message){ |
46 | - $this->doHandle($this->getMessageFromObject($message)); |
|
46 | + $this->doHandle($this->getMessageFromObject($message)); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | && $object->getName() == 'postSend' |
91 | 91 | && $object->hasHeader(Pipe::HEADER_MESSAGE) |
92 | 92 | && $content instanceof \PEIP\INF\Channel\PollableChannel |
93 | - ){ |
|
93 | + ){ |
|
94 | 94 | $object = $content->receive(); |
95 | 95 | } |
96 | 96 | if (!($object instanceof \PEIP\INF\Message\Message)) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function connect($name, $listener){ |
48 | 48 | Test::ensureHandler($listener); |
49 | 49 | if (!$this->hasListeners($name)){ |
50 | - $this->listeners[$name] = array(); |
|
50 | + $this->listeners[$name] = array(); |
|
51 | 51 | } |
52 | 52 | $this->listeners[$name][] = $listener; |
53 | 53 | return true; |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | } |
68 | 68 | $res = false; |
69 | 69 | foreach ($this->listeners[$name] as $i => $callable){ |
70 | - if ($listener === $callable){ |
|
70 | + if ($listener === $callable){ |
|
71 | 71 | unset($this->listeners[$name][$i]); |
72 | 72 | $res = true; |
73 | - } |
|
73 | + } |
|
74 | 74 | } |
75 | 75 | return $res; |
76 | 76 | } |
@@ -60,9 +60,9 @@ |
||
60 | 60 | */ |
61 | 61 | protected static function doNotifyUntil(array $listeners, $subject){ |
62 | 62 | foreach ($listeners as $listener){ |
63 | - if (self::doNotifyOne($listener, $subject)){ |
|
63 | + if (self::doNotifyOne($listener, $subject)){ |
|
64 | 64 | return $listener; |
65 | - } |
|
65 | + } |
|
66 | 66 | } |
67 | 67 | return NULL; |
68 | 68 | } |
@@ -63,17 +63,17 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * Registers a callable as builder for given node-name |
|
67 | - * |
|
68 | - * @implements \PEIP\INF\Context\Context |
|
69 | - * @access public |
|
70 | - * @param string $nodeName the name of the node |
|
71 | - * @param callable $callable a callable which creates instances for node-name |
|
72 | - */ |
|
66 | + * Registers a callable as builder for given node-name |
|
67 | + * |
|
68 | + * @implements \PEIP\INF\Context\Context |
|
69 | + * @access public |
|
70 | + * @param string $nodeName the name of the node |
|
71 | + * @param callable $callable a callable which creates instances for node-name |
|
72 | + */ |
|
73 | 73 | public function registerNodeBuilder($nodeName, $callable){ |
74 | 74 | $this->nodeBuilders[$nodeName] = $callable; |
75 | 75 | } |
76 | - /** |
|
76 | + /** |
|
77 | 77 | * Registers the build-methods for the main-components with this context. |
78 | 78 | * Note: This method and subsequent registered methods of this class are |
79 | 79 | * candidates for refactoring. Because this class has grown much to large |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | 'service' => 'initService' |
89 | 89 | ); |
90 | 90 | foreach($builders as $nodeName => $method){ |
91 | - $this->registerNodeBuilder($nodeName, array($this, $method)); |
|
91 | + $this->registerNodeBuilder($nodeName, array($this, $method)); |
|
92 | 92 | } |
93 | 93 | } |
94 | 94 |
@@ -32,11 +32,11 @@ |
||
32 | 32 | protected $services = array(); |
33 | 33 | |
34 | 34 | |
35 | - /** |
|
36 | - * Constructor. |
|
37 | - * |
|
38 | - * @param array $parameters An array of parameters |
|
39 | - */ |
|
35 | + /** |
|
36 | + * Constructor. |
|
37 | + * |
|
38 | + * @param array $parameters An array of parameters |
|
39 | + */ |
|
40 | 40 | |
41 | 41 | |
42 | 42 | /** |
@@ -31,13 +31,13 @@ |
||
31 | 31 | |
32 | 32 | |
33 | 33 | /** |
34 | - * Calls a method on a service (registered as a callable) with |
|
35 | - * content/payload of given message as argument. |
|
36 | - * |
|
37 | - * @access protected |
|
38 | - * @param \PEIP\INF\Message\Message $message message to call the service with it�s content/payload |
|
39 | - * @return mixed result of calling the registered service callable with message content/payload |
|
40 | - */ |
|
34 | + * Calls a method on a service (registered as a callable) with |
|
35 | + * content/payload of given message as argument. |
|
36 | + * |
|
37 | + * @access protected |
|
38 | + * @param \PEIP\INF\Message\Message $message message to call the service with it�s content/payload |
|
39 | + * @return mixed result of calling the registered service callable with message content/payload |
|
40 | + */ |
|
41 | 41 | protected function callService(\PEIP\INF\Message\Message $message){ |
42 | 42 | $res = NULL; |
43 | 43 | if(is_callable($this->serviceCallable)){ |
@@ -22,19 +22,19 @@ |
||
22 | 22 | |
23 | 23 | interface MessageDispatcher { |
24 | 24 | |
25 | - public function connect($name, \PEIP\INF\Message\MessageHandler $handler); |
|
25 | + public function connect($name, \PEIP\INF\Message\MessageHandler $handler); |
|
26 | 26 | |
27 | - public function disconnect($name, \PEIP\INF\Message\MessageHandler $handler); |
|
27 | + public function disconnect($name, \PEIP\INF\Message\MessageHandler $handler); |
|
28 | 28 | |
29 | - public function notify( $event); |
|
29 | + public function notify( $event); |
|
30 | 30 | |
31 | - public function notifyUntil( $event); |
|
31 | + public function notifyUntil( $event); |
|
32 | 32 | |
33 | - public function filter( $event, $value); |
|
33 | + public function filter( $event, $value); |
|
34 | 34 | |
35 | - public function hasListeners($name); |
|
35 | + public function hasListeners($name); |
|
36 | 36 | |
37 | - public function getListeners($name); |
|
37 | + public function getListeners($name); |
|
38 | 38 | |
39 | 39 | } |
40 | 40 |
@@ -22,18 +22,18 @@ |
||
22 | 22 | |
23 | 23 | interface ParameterHolder { |
24 | 24 | |
25 | - public function setParameters(array $parameters); |
|
25 | + public function setParameters(array $parameters); |
|
26 | 26 | |
27 | - public function addParameters(array $parameters); |
|
27 | + public function addParameters(array $parameters); |
|
28 | 28 | |
29 | - public function getParameters(); |
|
29 | + public function getParameters(); |
|
30 | 30 | |
31 | - public function getParameter($name); |
|
31 | + public function getParameter($name); |
|
32 | 32 | |
33 | - public function setParameter($name, $value); |
|
33 | + public function setParameter($name, $value); |
|
34 | 34 | |
35 | - public function hasParameter($name); |
|
35 | + public function hasParameter($name); |
|
36 | 36 | |
37 | - public function deleteParameter($name); |
|
37 | + public function deleteParameter($name); |
|
38 | 38 | |
39 | 39 | } |
@@ -25,26 +25,26 @@ |
||
25 | 25 | |
26 | 26 | interface StoreCollection { |
27 | 27 | |
28 | - public function setValues($namespace, array $parameters); |
|
28 | + public function setValues($namespace, array $parameters); |
|
29 | 29 | |
30 | - public function addValues($namespace, array $parameters); |
|
30 | + public function addValues($namespace, array $parameters); |
|
31 | 31 | |
32 | - public function getValues($namespace); |
|
32 | + public function getValues($namespace); |
|
33 | 33 | |
34 | - public function getValue($namespace, $name); |
|
34 | + public function getValue($namespace, $name); |
|
35 | 35 | |
36 | - public function setValue($namespace, $name, $value); |
|
36 | + public function setValue($namespace, $name, $value); |
|
37 | 37 | |
38 | - public function hasValue($namespace, $name); |
|
38 | + public function hasValue($namespace, $name); |
|
39 | 39 | |
40 | - public function deleteValue($namespace, $name); |
|
40 | + public function deleteValue($namespace, $name); |
|
41 | 41 | |
42 | - public function setStore($namespace, \PEIP\INF\Data\Store $store); |
|
42 | + public function setStore($namespace, \PEIP\INF\Data\Store $store); |
|
43 | 43 | |
44 | - public function getStore($namespace); |
|
44 | + public function getStore($namespace); |
|
45 | 45 | |
46 | - public function hasStore($namespace); |
|
46 | + public function hasStore($namespace); |
|
47 | 47 | |
48 | - public function deleteStore($namespace); |
|
48 | + public function deleteStore($namespace); |
|
49 | 49 | |
50 | 50 | } |
51 | 51 | \ No newline at end of file |