private function createResponsesForRoute($annotations)
    {
        $responses = array();

        foreach ($annotations as $annotation) {
            if ($annotation instanceof SwaggerResult) {
                /* @var SwaggerResult $annotation */
                $response = array(
                    "description" => $annotation->description
                );
                if($annotation->schema !== null) {
                    $schema = $this->processSchemaType($annotation);
                    $response['schema'] = $schema;
                }
                $responses[$annotation->status] = $response;
            }
        }
        return $responses;
    }
private function createResponsesForRoute($annotations)
    {
        $responses = array();

        foreach ($annotations as $annotation) {
            if ($annotation instanceof SwaggerResult) {
                /* @var SwaggerResult $annotation */
                $response = array(
                    "description" => $annotation->description
                );
                if($annotation->schema !== null) {
                    $schema = $this->processSchemaType($annotation);
                    $response['schema'] = $schema;
                }
                $responses[$annotation->status] = $response;
            }
        }
        return $responses;
    }
private function createResponsesForRoute ( $ annotations ) { $ responses = array ( ) ; foreach ( $ annotations as $ annotation ) { if ( $ annotation instanceof SwaggerResult ) { /* @var SwaggerResult $annotation */ $ response = array ( "description" => $ annotation -> description ) ; if ( $ annotation -> schema !== null ) { $ schema = $ this -> processSchemaType ( $ annotation ) ; $ response [ 'schema' ] = $ schema ; } $ responses [ $ annotation -> status ] = $ response ; } } return $ responses ; }
Creates a responses array for the route which has those annotations passes into this function

@param $annotations array Annotations on an object
@return array Possible response types
Creates a responses array for the route which has those annotations passes into this function