@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * @param array $attributes array og attributes that service expects |
261 | 261 | * @param array $parameters array of parameters that service expects |
262 | 262 | * |
263 | - * @return Object $this |
|
263 | + * @return Service $this |
|
264 | 264 | */ |
265 | 265 | final public function expects($method, $attributes, $parameters=array()) { |
266 | 266 | |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * @param array $attributes array og attributes that service likes |
281 | 281 | * @param array $parameters array of parameters that service likes |
282 | 282 | * |
283 | - * @return Object $this |
|
283 | + * @return Service $this |
|
284 | 284 | */ |
285 | 285 | final public function likes($method, $attributes, $parameters=array()) { |
286 | 286 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * |
307 | 307 | * @param string $methods HTTP methods, comma separated |
308 | 308 | * |
309 | - * @return Object $this |
|
309 | + * @return Service $this |
|
310 | 310 | */ |
311 | 311 | final public function setSupportedMethods($methods) { |
312 | 312 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | * Set service content type |
332 | 332 | * |
333 | 333 | * @param string $type Content Type |
334 | - * @return Object $this |
|
334 | + * @return Service $this |
|
335 | 335 | */ |
336 | 336 | final public function setContentType($type) { |
337 | 337 | |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | * |
358 | 358 | * @param string $charset Charset |
359 | 359 | * |
360 | - * @return Object $this |
|
360 | + * @return Service $this |
|
361 | 361 | */ |
362 | 362 | final public function setCharset($charset) { |
363 | 363 | |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * Set success status code |
383 | 383 | * |
384 | 384 | * @param integer $code HTTP status code (in case of success) |
385 | - * @return Object $this |
|
385 | + * @return Service $this |
|
386 | 386 | */ |
387 | 387 | final public function setStatusCode($code) { |
388 | 388 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * @param string $header Header name |
434 | 434 | * @param string $value Header content (optional) |
435 | 435 | * |
436 | - * @return Object $this |
|
436 | + * @return Service $this |
|
437 | 437 | */ |
438 | 438 | final public function setHeader($header, $value=null) { |
439 | 439 | |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | * |
485 | 485 | * @param array $headers Headers array |
486 | 486 | * |
487 | - * @return Object $this |
|
487 | + * @return Service $this |
|
488 | 488 | */ |
489 | 489 | final public function setHeaders($headers) { |
490 | 490 | |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | /** |
498 | 498 | * Unset headers |
499 | 499 | * |
500 | - * @return Object $this |
|
500 | + * @return Service $this |
|
501 | 501 | */ |
502 | 502 | final public function unsetHeaders() { |
503 | 503 | |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | /** |
522 | 522 | * Get service-supported HTTP methods |
523 | 523 | * |
524 | - * @return array Headers array |
|
524 | + * @return string Headers array |
|
525 | 525 | */ |
526 | 526 | final public function getSupportedMethods() { |
527 | 527 | |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | /** |
556 | 556 | * Return the callable class method that reflect the requested one |
557 | 557 | * |
558 | - * @return array Headers array |
|
558 | + * @return string Headers array |
|
559 | 559 | */ |
560 | 560 | final public function getCallableMethod($method) { |
561 | 561 |
@@ -167,6 +167,9 @@ |
||
167 | 167 | |
168 | 168 | } |
169 | 169 | |
170 | + /** |
|
171 | + * @param string $name |
|
172 | + */ |
|
170 | 173 | private function emitServiceSpecializedEvents($name) { |
171 | 174 | |
172 | 175 | return new ServiceEvent( |
@@ -66,8 +66,6 @@ |
||
66 | 66 | /** |
67 | 67 | * Map provided log level to level code |
68 | 68 | * |
69 | - * @param string $level |
|
70 | - * |
|
71 | 69 | * @return integer |
72 | 70 | */ |
73 | 71 | protected static function getAlgorithm($algorithm) { |
@@ -33,8 +33,6 @@ |
||
33 | 33 | /** |
34 | 34 | * Create the logger |
35 | 35 | * |
36 | - * @param bool $verbose |
|
37 | - * |
|
38 | 36 | * @return \Monolog\Logger |
39 | 37 | */ |
40 | 38 | public static function create(Configuration $configuration) { |
@@ -47,6 +47,11 @@ discard block |
||
47 | 47 | |
48 | 48 | private $table = array(); |
49 | 49 | |
50 | + /** |
|
51 | + * @param \Comodojo\Dispatcher\Components\Configuration $routing_table |
|
52 | + * @param \Monolog\Logger $configuration |
|
53 | + * @param \Comodojo\Cache\CacheManager $logger |
|
54 | + */ |
|
50 | 55 | public function __construct($routing_table, $configuration = null, $logger = null, $cache = null) { |
51 | 56 | |
52 | 57 | parent::__construct($configuration, $logger); |
@@ -173,6 +178,9 @@ discard block |
||
173 | 178 | |
174 | 179 | } |
175 | 180 | |
181 | + /** |
|
182 | + * @param string[] $bits |
|
183 | + */ |
|
176 | 184 | private function evalUri($parameters, $bits) { |
177 | 185 | |
178 | 186 | $count = 0; |
@@ -62,6 +62,9 @@ |
||
62 | 62 | |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $route |
|
67 | + */ |
|
65 | 68 | public function get($route) { |
66 | 69 | |
67 | 70 | $folders = explode("/", $route); |