Property | Type | Description | |
---|---|---|---|
$annotations | SplObjectStorage | ||
$classes | array | Class definitions | |
$swagger | Swagger\Annotations\Swagger | The target Swagger annotation. |
Method | Description | |
---|---|---|
__construct ( array $annotations = [], null $context = null ) | ||
addAnalysis ( |
||
addAnnotation ( |
||
addAnnotations ( array $annotations, |
||
addClassDefinition ( array $definition ) | ||
getAnnotationsOfType ( string $class, boolean $strict = false ) : array | ||
getContext ( object $annotation ) : |
||
getSubClasses ( $class ) | ||
getSuperClasses ( $class ) | ||
merged ( ) : |
Build an analysis with only the annotations that are merged into the swagger annotation. | |
process ( Closur\Closure | Closur\Closure[] $processors = null ) | Apply the processor(s) | |
processors ( ) : array | Get direct access to the processors array. | |
registerProcessor ( Closure $processor ) | Register a processor | |
split ( ) : object | Split the annotation into two analysis. | |
unmerged ( ) : |
Analysis with only the annotations that not merged. | |
unregisterProcessor ( Closure $processor ) | Unregister a processor | |
validate ( ) |
public __construct ( array $annotations = [], null $context = null ) | ||
$annotations | array | |
$context | null |
public addAnnotation ( |
||
$annotation | ||
$context |
public addAnnotations ( array $annotations, |
||
$annotations | array | |
$context |
public addClassDefinition ( array $definition ) | ||
$definition | array |
public getContext ( object $annotation ) : |
||
$annotation | object | |
return |
public merged ( ) : |
||
return |
public process ( Closur\Closure | Closur\Closure[] $processors = null ) | ||
$processors | Closur\Closure | Closur\Closure[] | One or more processors |
public static processors ( ) : array | ||
return | array | reference |
public static registerProcessor ( Closure $processor ) | ||
$processor | Closure |
public unmerged ( ) : |
||
return |
public static unregisterProcessor ( Closure $processor ) | ||
$processor | Closure |