public function getMethods()
    {
        return array_reduce(
            $this->_models,
            function ($result, $item) {
                $result[$item['method']] = $item['method'];
                return $result;
            },
            []
        );
    }
public function getMethods()
    {
        return array_reduce(
            $this->_models,
            function ($result, $item) {
                $result[$item['method']] = $item['method'];
                return $result;
            },
            []
        );
    }
public function getMethods ( ) { return array_reduce ( $ this -> _models , function ( $ result , $ item ) { $ result [ $ item [ 'method' ] ] = $ item [ 'method' ] ; return $ result ; } , [ ] ) ; }
Returns array request methods

@return array
Returns array request methods