Classes
Should be last route describer executed to make sure all params are set.
Interfaces, Classes and Traits
Table of Contents
- describe() : mixed
- getRefParams() : array<string|int, Parameter>
- The '$ref' parameters need special handling, since their objects are missing 'name' and 'in'.
- normalizePath() : string
Methods
describe()
public
describe(OpenApi $api, Route $route, ReflectionMethod $reflectionMethod) : mixed
Parameters
- $api : OpenApi
- $route : Route
- $reflectionMethod : ReflectionMethod
Return values
mixed —getRefParams()
The '$ref' parameters need special handling, since their objects are missing 'name' and 'in'.
private
getRefParams(OpenApi $api, Operation $operation) : array<string|int, Parameter>
Parameters
- $api : OpenApi
- $operation : Operation
Return values
array<string|int, Parameter> —existing $ref parameters
normalizePath()
private
normalizePath(string $path) : string
Parameters
- $path : string