protected function validate()
    {
        if ($this->method === HttpMethods::POST && empty($this->data)) {
            throw new Exceptions\WebException(
                "Using method POST without data."
            );
        }
    }
protected function validate()
    {
        if ($this->method === HttpMethods::POST && empty($this->data)) {
            throw new Exceptions\WebException(
                "Using method POST without data."
            );
        }
    }
protected function validate ( ) { if ( $ this -> method === HttpMethods :: POST && empty ( $ this -> data ) ) { throw new Exceptions \ WebException ( "Using method POST without data." ) ; } }
Validates the request values for correctness

@throws Exceptions\WebException When an incorrect value is found
Validates the request values for correctness