src/Graviton/SwaggerBundle/Service/Swagger.php
protected function getSummary($method, $isCollectionRequest, $entityName)
    {
        $ret = '';
        // meaningful descriptions..
        switch ($method) {
            case 'get':
                if ($isCollectionRequest) {
                    $ret = 'Get collection of ' . $entityName . ' resources';
                } else {
                    $ret = 'Get single ' . $entityName . ' resources';
                }
                break;
            case 'post':
                $ret = 'Create new ' . $entityName . ' resource';
                break;
            case 'put':
                $ret = 'Update existing ' . $entityName . ' resource';
                break;
            case 'delete':
                $ret = 'Delete existing ' . $entityName . ' resource';
        }
        return $ret;
    }
protected function getSummary($method, $isCollectionRequest, $entityName)
    {
        $ret = '';
        // meaningful descriptions..
        switch ($method) {
            case 'get':
                if ($isCollectionRequest) {
                    $ret = 'Get collection of ' . $entityName . ' resources';
                } else {
                    $ret = 'Get single ' . $entityName . ' resources';
                }
                break;
            case 'post':
                $ret = 'Create new ' . $entityName . ' resource';
                break;
            case 'put':
                $ret = 'Update existing ' . $entityName . ' resource';
                break;
            case 'delete':
                $ret = 'Delete existing ' . $entityName . ' resource';
        }
        return $ret;
    }
protected function getSummary ( $ method , $ isCollectionRequest , $ entityName ) { $ ret = '' ; // meaningful descriptions.. switch ( $ method ) { case 'get' : if ( $ isCollectionRequest ) { $ ret = 'Get collection of ' . $ entityName . ' resources' ; } else { $ ret = 'Get single ' . $ entityName . ' resources' ; } break ; case 'post' : $ ret = 'Create new ' . $ entityName . ' resource' ; break ; case 'put' : $ ret = 'Update existing ' . $ entityName . ' resource' ; break ; case 'delete' : $ ret = 'Delete existing ' . $ entityName . ' resource' ; } return $ ret ; }
Returns a meaningful summary depending on certain conditions

@param string $method              Method
@param bool   $isCollectionRequest If collection request
@param string $entityName          Name of entity

@return string summary
Returns a meaningful summary depending on certain conditions