Свойство | Type | Description | |
---|---|---|---|
$_blacklist | array | List of properties are blacklisted from the JSON output. | |
$_context | |||
$_nested | array | Examples: 'Swagger\Annotation\Info' => 'info', // Set @SWG\Info annotation as the info property. 'Swagger\Annotation\Parameter' => ['parameters'], // Append @SWG\Parameter annotations the parameters array. 'Swagger\Annotation\Path' => ['paths', 'path'], // Append @SWG\Path annotations the paths array and use path as key. | |
$_parents | string[] | Reverse mapping of $_nested with the allowed parent annotations. | |
$_required | array | The properties which are required by the spec | |
$_types | array | Examples: 'name' => 'string' // a string 'required' => 'boolean', // true or false 'tags' => '[string]', // array containing strings 'in' => ["query", "header", "path", "formData", "body"] // must be one on these | |
$_unmerged | array | Annotations that couldn't be merged by mapping or postprocessing. | |
$x | array | The keys inside the array will be prefixed with x-. For further details see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#vendorExtensions. |
Méthode | Description | |
---|---|---|
__construct ( array $properties ) | ||
__debugInfo ( ) | ||
__get ( $property ) | ||
__set ( $property, $value ) | ||
__toString ( ) | ||
identity ( ) : string | Return a identity for easy debugging. | |
jsonSerialize ( ) : array | Customize the way json_encode() renders the annotations. | |
merge ( |
Merge given annotations to their mapped properties configured in static::$_nested. | |
mergeProperties ( object $object ) | Merge the properties from the given object into this annotation. | |
validate ( array $parents = [], array $skip = [] ) : boolean | Validate annotation tree, and log notices & warnings. |
Méthode | Description | |
---|---|---|
_identity ( array $properties ) : string | Helper for generating the identity() |
Méthode | Description | |
---|---|---|
_validate ( array | object $fields, array $path, $skip ) : boolean | Recursively validate all annotation properties. | |
nested ( |
Wrap the context with a reference to the annotation it is nested in. | |
validateType ( $type, $value ) |
public jsonSerialize ( ) : array | ||
Résultat | array |
public mergeProperties ( object $object ) | ||
$object | object |
public static array $_blacklist | ||
Résultat | array |
public static array $_nested | ||
Résultat | array |
public static string[] $_parents | ||
Résultat | string[] |
public static array $_types | ||
Résultat | array |
public array $_unmerged | ||
Résultat | array |
public array $x | ||
Résultat | array |