public function getHttpMethodsAsArray()
    {

        // initialize the array for the HTTP methods
        $httpMethods = array();

        // prepare the HTTP methods
        /** @var \AppserverIo\Appserver\Core\Api\Node\HttpMethodNode $httpMethodNode */
        foreach ($this->getHttpMethods() as $httpMethodNode) {
            $httpMethods[] = strtoupper($httpMethodNode->__toString());
        }

        // return the array with the HTTP methods
        return $httpMethods;
    }
public function getHttpMethodsAsArray()
    {

        // initialize the array for the HTTP methods
        $httpMethods = array();

        // prepare the HTTP methods
        /** @var \AppserverIo\Appserver\Core\Api\Node\HttpMethodNode $httpMethodNode */
        foreach ($this->getHttpMethods() as $httpMethodNode) {
            $httpMethods[] = strtoupper($httpMethodNode->__toString());
        }

        // return the array with the HTTP methods
        return $httpMethods;
    }
public function getHttpMethodsAsArray ( ) { // initialize the array for the HTTP methods $ httpMethods = array ( ) ; // prepare the HTTP methods /** @var \AppserverIo\Appserver\Core\Api\Node\HttpMethodNode $httpMethodNode */ foreach ( $ this -> getHttpMethods ( ) as $ httpMethodNode ) { $ httpMethods [ ] = strtoupper ( $ httpMethodNode -> __toString ( ) ) ; } // return the array with the HTTP methods return $ httpMethods ; }
Returns the HTTP methods as an associative array.

The HTTP methods will be converted to upper case when using this method.

@return array The array with the HTTP methods
Returns the HTTP methods as an associative array .