AppserverIo\Appserver\Core\Api\Node\WebResourceCollectionNode::getHttpMethodsAsArray PHP Method

getHttpMethodsAsArray() public method

The HTTP methods will be converted to upper case when using this method.
public getHttpMethodsAsArray ( ) : array
return array The array with the HTTP methods
    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;
    }