class Extractor extends ApiDocExtractor

A class that finds the ApiDoc annotations in our controllers

Methods

array
extractAnnotations(array $routes, string $view = 'default')

Returns an array of data where each data is an array with the following keys: - annotation - resource

getReflectionMethod(ReflectionMethod|string $controller)

Returns the ReflectionMethod for the given controller string.

Details

at line line 30
array extractAnnotations(array $routes, string $view = 'default')

Returns an array of data where each data is an array with the following keys: - annotation - resource

Parameters

array $routes array of Route-objects for which the annotations should be extracted
string $view

Return Value

array

at line line 54
ReflectionMethod|null getReflectionMethod(ReflectionMethod|string $controller)

Returns the ReflectionMethod for the given controller string.

Parameters

ReflectionMethod|string $controller

Return Value

ReflectionMethod|null