public function getRequestMethods(): array
    {
        if (null === $this->requestMethods) {
            $this->requestMethods = [
                RequestMethod::GET,
                RequestMethod::HEAD,
            ];
        }

        return $this->requestMethods;
    }
public function getRequestMethods(): array
    {
        if (null === $this->requestMethods) {
            $this->requestMethods = [
                RequestMethod::GET,
                RequestMethod::HEAD,
            ];
        }

        return $this->requestMethods;
    }
public function getRequestMethods ( ) : array { if ( null === $ this -> requestMethods ) { $ this -> requestMethods = [ RequestMethod :: GET , RequestMethod :: HEAD , ] ; } return $ this -> requestMethods ; }
Get the request methods.

@return array
Get the request methods .