@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ]; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @param $class string FQCN of AMQPConnection class to instantiate. |
|
| 33 | + * @param string $class string FQCN of AMQPConnection class to instantiate. |
|
| 34 | 34 | * @param array $parameters |
| 35 | 35 | * @throws InvalidAMQPConnectionClassException |
| 36 | 36 | */ |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * @param $queue |
|
| 32 | + * @param string $queue |
|
| 33 | 33 | * @param RpcServiceInterface $serviceCallback |
| 34 | 34 | * @param bool|false $passive |
| 35 | 35 | * @param bool|false $durable |
@@ -44,19 +44,19 @@ |
||
| 44 | 44 | ->prototype('array') |
| 45 | 45 | ->children() |
| 46 | 46 | ->arrayNode('queue') |
| 47 | - ->children() |
|
| 48 | - ->scalarNode('name')->end() |
|
| 49 | - ->booleanNode('passive')->defaultFalse()->end() |
|
| 50 | - ->booleanNode('durable')->defaultTrue()->end() |
|
| 51 | - ->booleanNode('exclusive')->defaultFalse()->end() |
|
| 52 | - ->booleanNode('auto_delete')->defaultFalse()->end() |
|
| 53 | - ->booleanNode('nowait')->defaultFalse()->end() |
|
| 54 | - ->variableNode('arguments')->defaultNull()->end() |
|
| 55 | - ->scalarNode('ticket')->defaultNull()->end() |
|
| 56 | - ->arrayNode('routing_keys') |
|
| 47 | + ->children() |
|
| 48 | + ->scalarNode('name')->end() |
|
| 49 | + ->booleanNode('passive')->defaultFalse()->end() |
|
| 50 | + ->booleanNode('durable')->defaultTrue()->end() |
|
| 51 | + ->booleanNode('exclusive')->defaultFalse()->end() |
|
| 52 | + ->booleanNode('auto_delete')->defaultFalse()->end() |
|
| 53 | + ->booleanNode('nowait')->defaultFalse()->end() |
|
| 54 | + ->variableNode('arguments')->defaultNull()->end() |
|
| 55 | + ->scalarNode('ticket')->defaultNull()->end() |
|
| 56 | + ->arrayNode('routing_keys') |
|
| 57 | 57 | ->prototype('scalar')->end() |
| 58 | - ->end() |
|
| 59 | - ->end() |
|
| 58 | + ->end() |
|
| 59 | + ->end() |
|
| 60 | 60 | ->end() |
| 61 | 61 | ->scalarNode('class')->end() |
| 62 | 62 | ->arrayNode('arguments')->end() |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | throw new ResourceNotFoundException(sprintf('No routes found for "%s".', $path)); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $path |
|
| 39 | + */ |
|
| 37 | 40 | public function matchCollection($path, MethodCollection $methods) |
| 38 | 41 | { |
| 39 | 42 | foreach ($methods as $name => $method) { |
@@ -125,6 +125,9 @@ discard block |
||
| 125 | 125 | return $this; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $name |
|
| 130 | + */ |
|
| 128 | 131 | public function getOption($name) |
| 129 | 132 | { |
| 130 | 133 | if (isset($this->options[$name])) { |
@@ -175,6 +178,9 @@ discard block |
||
| 175 | 178 | return array_key_exists($name, $this->defaults); |
| 176 | 179 | } |
| 177 | 180 | |
| 181 | + /** |
|
| 182 | + * @param string $name |
|
| 183 | + */ |
|
| 178 | 184 | public function setDefault($name, $default) |
| 179 | 185 | { |
| 180 | 186 | $this->defaults[$name] = $default; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function serialize() |
| 25 | 25 | { |
| 26 | 26 | return serialize([ |
| 27 | - 'id' => $this->id, |
|
| 27 | + 'id' => $this->id, |
|
| 28 | 28 | 'name' => $this->name, |
| 29 | 29 | 'params' => $this->params, |
| 30 | 30 | 'defaults' => $this->defaults, |
@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | protected $options = []; |
| 20 | 20 | private $configCacheFactory; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $resource |
|
| 24 | + */ |
|
| 22 | 25 | public function __construct(ContainerInterface $loader, $resource, array $options = []) |
| 23 | 26 | { |
| 24 | 27 | $this->loader = $loader; |
@@ -54,6 +57,9 @@ discard block |
||
| 54 | 57 | } |
| 55 | 58 | } |
| 56 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $key |
|
| 62 | + */ |
|
| 57 | 63 | public function setOption($key, $value) |
| 58 | 64 | { |
| 59 | 65 | if (!array_key_exists($key, $this->options)) { |
@@ -63,6 +69,9 @@ discard block |
||
| 63 | 69 | $this->options[$key] = $value; |
| 64 | 70 | } |
| 65 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $key |
|
| 74 | + */ |
|
| 66 | 75 | public function getOption($key) |
| 67 | 76 | { |
| 68 | 77 | if (!array_key_exists($key, $this->options)) { |
@@ -122,6 +131,7 @@ discard block |
||
| 122 | 131 | |
| 123 | 132 | /** |
| 124 | 133 | * {@inheritdoc} |
| 134 | + * @param string $pathinfo |
|
| 125 | 135 | */ |
| 126 | 136 | public function match($pathinfo) |
| 127 | 137 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * @var JsonRpcResponseCollection $responses |
| 21 | 21 | */ |
| 22 | - // $responses = $this->getMockBuilder('Cmobi\RabbitmqBundle\Rpc\Response\JsonRpcResponseCollection')->getMock(); |
|
| 22 | + // $responses = $this->getMockBuilder('Cmobi\RabbitmqBundle\Rpc\Response\JsonRpcResponseCollection')->getMock(); |
|
| 23 | 23 | /** |
| 24 | 24 | * @var AMQPMessage |
| 25 | 25 | */ |