private function checkMethodExist(string $method):int
    {
        if (in_array($method, $this->methodsReq)) {
            return (1);
        } else {
            new Server500(new \ArrayObject(array("explain" => "Unknown method $method for Allowed method request",
                "solution" => "Allowed methods request must be ".json_encode($this->methodsReq))));
        }
        return (0);
    }
private function checkMethodExist(string $method):int
    {
        if (in_array($method, $this->methodsReq)) {
            return (1);
        } else {
            new Server500(new \ArrayObject(array("explain" => "Unknown method $method for Allowed method request",
                "solution" => "Allowed methods request must be ".json_encode($this->methodsReq))));
        }
        return (0);
    }
private function checkMethodExist ( string $ method ) : int { if ( in_array ( $ method , $ this -> methodsReq ) ) { return ( 1 ) ; } else { new Server500 ( new \ ArrayObject ( array ( "explain" => "Unknown method $method for Allowed method request" , "solution" => "Allowed methods request must be " . json_encode ( $ this -> methodsReq ) ) ) ) ; } return ( 0 ) ; }
Check if request method exist
@param string $method Method request
@return int If method exist
@throws Server500
Check if request method exist