public function execute()
    {

        //if this is an internal Sherlock BatchCommand, make sure index/types/action are filled
        if ($this->batch instanceof BatchCommand) {
            $this->batch->fillIndex($this->params['index'][0])
                ->fillType($this->params['type'][0]);
        }

        return parent::execute();
    }
public function execute()
    {

        //if this is an internal Sherlock BatchCommand, make sure index/types/action are filled
        if ($this->batch instanceof BatchCommand) {
            $this->batch->fillIndex($this->params['index'][0])
                ->fillType($this->params['type'][0]);
        }

        return parent::execute();
    }
public function execute ( ) { //if this is an internal Sherlock BatchCommand, make sure index/types/action are filled if ( $ this -> batch instanceof BatchCommand ) { $ this -> batch -> fillIndex ( $ this -> params [ 'index' ] [ 0 ] ) -> fillType ( $ this -> params [ 'type' ] [ 0 ] ) ; } return parent :: execute ( ) ; }
Perform the delete operation

@throws exceptions\RuntimeException
@return \Sherlock\responses\DeleteResponse
Perform the delete operation