PHP Class Swagger\Processors\HandleReferences

Show file Open project: zircote/swagger-php

Public Methods

Method Description
__invoke ( Analysis $analysis )

Private Methods

Method Description
checkSyntax ( $string ) : integer Checks the syntax of the string to make sure it starts with a $
getAllImports ( Analysis $analysis ) Gets all the possible importable objects and adds them to the lists.
importReferences ( ) Imports the references from all of the responses
importSchema ( Schema $parent, Schema $child ) Imports the schema
isEmpty ( Property $property ) : boolean Checks if the value is empty.
iterateQueue ( array &$queue, $current_key ) Iterates the pending queue, popping the first element of the list.
link ( $response ) : array Creates the Linked list array item.
loadParameters ( Swagger\Annotations\Operation $operation ) Loads all the parameters into the mapping
loadParent ( &$child, $type, $parent_name ) Links the child with the parent
loadResponses ( Swagger\Annotations\Operation $operation ) Loads all the responses into the mapping
loadSchemas ( Swagger\Annotations\Operation $operation ) Loads all the schemas into the mapping
mapReferences ( ) Maps the response to each parent child.
propertyRetrieve ( array $params ) Retrieves all the sub properties

Method Details

__invoke() public method

public __invoke ( Analysis $analysis )
$analysis Swagger\Analysis