src/Http/Request.php
private function validateProperties(): void
    {
        if (!isset(self::$validMethods[$this->method])) {
            throw new InvalidArgumentException("Invalid HTTP method {$this->method}");
        }

        if (!isset(self::$validRequestTargetTypes[$this->requestTargetType])) {
            throw new InvalidArgumentException("Request target type {$this->requestTargetType} is invalid");
        }
    }
private function validateProperties(): void
    {
        if (!isset(self::$validMethods[$this->method])) {
            throw new InvalidArgumentException("Invalid HTTP method {$this->method}");
        }

        if (!isset(self::$validRequestTargetTypes[$this->requestTargetType])) {
            throw new InvalidArgumentException("Request target type {$this->requestTargetType} is invalid");
        }
    }
private function validateProperties ( ) : void { if ( ! isset ( self :: $ validMethods [ $ this -> method ] ) ) { throw new InvalidArgumentException ( "Invalid HTTP method {$this->method}" ) ; } if ( ! isset ( self :: $ validRequestTargetTypes [ $ this -> requestTargetType ] ) ) { throw new InvalidArgumentException ( "Request target type {$this->requestTargetType} is invalid" ) ; } }
Validates all the properties

@throws InvalidArgumentException Thrown if any of the properties are invalid
Validates all the properties