private function configureDelete(Delete $operation, array $options)
    {
        if (!$operation->summary) {
            $operation->summary = 'Delete a '.$options['entity_name'].' entity';
        }
        $this->appendResponses(
            $operation,
            [
                new Response(
                    [
                        'response' => 204,
                        'description' => 'Entity Deleted',
                    ]
                ),
                new Response(
                    [
                        'response' => 400,
                        'description' => 'Validation Exception',
                    ]
                ),
                new Response(
                    [
                        'response' => 404,
                        'description' => 'Entity Not Found',
                    ]
                ),
            ]
        );
    }
private function configureDelete(Delete $operation, array $options)
    {
        if (!$operation->summary) {
            $operation->summary = 'Delete a '.$options['entity_name'].' entity';
        }
        $this->appendResponses(
            $operation,
            [
                new Response(
                    [
                        'response' => 204,
                        'description' => 'Entity Deleted',
                    ]
                ),
                new Response(
                    [
                        'response' => 400,
                        'description' => 'Validation Exception',
                    ]
                ),
                new Response(
                    [
                        'response' => 404,
                        'description' => 'Entity Not Found',
                    ]
                ),
            ]
        );
    }
private function configureDelete ( Delete $ operation , array $ options ) { if ( ! $ operation -> summary ) { $ operation -> summary = 'Delete a ' . $ options [ 'entity_name' ] . ' entity' ; } $ this -> appendResponses ( $ operation , [ new Response ( [ 'response' => 204 , 'description' => 'Entity Deleted' , ] ) , new Response ( [ 'response' => 400 , 'description' => 'Validation Exception' , ] ) , new Response ( [ 'response' => 404 , 'description' => 'Entity Not Found' , ] ) , ] ) ; }
Configure a Delete annotation with FosRest data.

@param Delete $operation
@param array  $options
Configure a Delete annotation with FosRest data .