Swagger\Processors\HandleReferences::loadSchemas PHP Method

loadSchemas() private method

Loads all the schemas into the mapping
private loadSchemas ( Swagger\Annotations\Operation $operation )
$operation Swagger\Annotations\Operation
    private function loadSchemas(Operation $operation)
    {
        if (!is_null($operation->responses)) {
            /** @var Response $item */
            foreach ($operation->responses as $item) {
                if (!is_null($item->schema)) {
                    $this->propertyRetrieve([$item->schema]);
                }
            }
        }
    }