@@ -392,6 +392,9 @@ discard block |
||
| 392 | 392 | return null; |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | + /** |
|
| 396 | + * @param string $basePath |
|
| 397 | + */ |
|
| 395 | 398 | protected function generateMap($class, $basePath) |
| 396 | 399 | { |
| 397 | 400 | $reflection = Utilities::reflectionClassFromObjectOrClass($class); |
@@ -448,6 +451,9 @@ discard block |
||
| 448 | 451 | } |
| 449 | 452 | } |
| 450 | 453 | |
| 454 | + /** |
|
| 455 | + * @return string |
|
| 456 | + */ |
|
| 451 | 457 | public function getPath() |
| 452 | 458 | { |
| 453 | 459 | if ($this->url !== null) { |
@@ -584,6 +590,9 @@ discard block |
||
| 584 | 590 | echo $data; |
| 585 | 591 | } |
| 586 | 592 | |
| 593 | + /** |
|
| 594 | + * @param integer $code |
|
| 595 | + */ |
|
| 587 | 596 | public function setStatus($code) |
| 588 | 597 | { |
| 589 | 598 | $code_and_description = $code . ' ' . HttpStatusCodes::getDescription($code); |
@@ -741,7 +750,7 @@ discard block |
||
| 741 | 750 | /** |
| 742 | 751 | * Get an API route map |
| 743 | 752 | * |
| 744 | - * @return array API routes map |
|
| 753 | + * @return string API routes map |
|
| 745 | 754 | */ |
| 746 | 755 | public function getMap() |
| 747 | 756 | { |