public function delete(string $id)
    {
        if ($this->can('delete')) {

            $this->flow->getLogger()->debug("Deleting Resource: $this->id => $id");

            return $this->make(
                $this->performDelete($this->id, $id)
            );
        }
        throw new \BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
public function delete(string $id)
    {
        if ($this->can('delete')) {

            $this->flow->getLogger()->debug("Deleting Resource: $this->id => $id");

            return $this->make(
                $this->performDelete($this->id, $id)
            );
        }
        throw new \BadMethodCallException('Method '.__FUNCTION__.' does not exist');
    }
public function delete ( string $ id ) { if ( $ this -> can ( 'delete' ) ) { $ this -> flow -> getLogger ( ) -> debug ( "Deleting Resource: $this->id => $id" ) ; return $ this -> make ( $ this -> performDelete ( $ this -> id , $ id ) ) ; } throw new \ BadMethodCallException ( 'Method ' . __FUNCTION__ . ' does not exist' ) ; }
Deletes a Resource

@param string $id
@return mixed
Deletes a Resource