public function enumerate($methods = [], $params = [])
    {
        if (is_array($methods)) {
            $return = [];
            foreach ($methods as $key => $value) {
                if (is_array($value)) {
                    $return[$key] = $this->$key(...$value);
                } else {
                    $return[$value] = $this->$value();
                }
            }
            return $return;
        } elseif (is_string($methods)) {
            return $this->$methods(...$params);
        }
    }
public function enumerate($methods = [], $params = [])
    {
        if (is_array($methods)) {
            $return = [];
            foreach ($methods as $key => $value) {
                if (is_array($value)) {
                    $return[$key] = $this->$key(...$value);
                } else {
                    $return[$value] = $this->$value();
                }
            }
            return $return;
        } elseif (is_string($methods)) {
            return $this->$methods(...$params);
        }
    }
public function enumerate ( $ methods = [ ] , $ params = [ ] ) { if ( is_array ( $ methods ) ) { $ return = [ ] ; foreach ( $ methods as $ key => $ value ) { if ( is_array ( $ value ) ) { $ return [ $ key ] = $ this -> $ key ( ... $ value ) ; } else { $ return [ $ value ] = $ this -> $ value ( ) ; } } return $ return ; } elseif ( is_string ( $ methods ) ) { return $ this -> $ methods ( ... $ params ) ; } }
Enumerate multiple methods, saves on HTTP calls

@param array $methods
Enumerate multiple methods saves on HTTP calls