protected function hideMethod($methodName)
    {
        if (!method_exists($this, $methodName)) {
            throw new Exception(500, "The method '$methodName' does not exist in ".get_called_class());
        }
        $this->hiddenMethods[$methodName] = true;
        return $this;
    }
protected function hideMethod($methodName)
    {
        if (!method_exists($this, $methodName)) {
            throw new Exception(500, "The method '$methodName' does not exist in ".get_called_class());
        }
        $this->hiddenMethods[$methodName] = true;
        return $this;
    }
protected function hideMethod ( $ methodName ) { if ( ! method_exists ( $ this , $ methodName ) ) { throw new Exception ( 500 , "The method '$methodName' does not exist in " . get_called_class ( ) ) ; } $ this -> hiddenMethods [ $ methodName ] = true ; return $ this ; }
Hide a method

When a controller or endpoint method is hidden, it will no longer be
automatically listed in the controllers index. It will, however, still
be accessible.

@param $methodName
@return $this
@throws Exception
Hide a method