| 1 | <?php | ||
| 8 | class DocumentorController extends Controller { | ||
| 9 | const DOMAIN = 'ROOT'; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * @Inyectable | ||
| 13 | * @var \PSFS\services\DocumentorService $srv | ||
| 14 | */ | ||
| 15 | protected $srv; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * @GET | ||
| 19 | * @CACHE 600 | ||
| 20 | * @label Generador de documentación API | ||
| 21 |      * @route /{domain}/api/doc | ||
| 22 | * | ||
| 23 | * @param string $domain | ||
| 24 | * | ||
| 25 | * @return string JSON | ||
|  | |||
| 26 | */ | ||
| 27 | public function createApiDocs($domain) | ||
| 56 | } | 
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.