| 1 | <?php |
||
| 10 | class Api extends Controller |
||
| 11 | { |
||
| 12 | const DOMAIN = 'ROOT'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @Inyectable |
||
| 16 | * @var \PSFS\Services\DocumentorService srv |
||
| 17 | */ |
||
| 18 | protected $srv; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @GET |
||
| 22 | * @route /api/__doc/{type} |
||
| 23 | * |
||
| 24 | * @param string $type |
||
| 25 | * |
||
| 26 | * @return string JSON |
||
|
|
|||
| 27 | */ |
||
| 28 | public function createApiDocs($type = 'swagger') |
||
| 40 | } |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.