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

getHttpMethodOmissionsAsArray() public method

The HTTP methods will be converted to upper case when using this method.
public getHttpMethodOmissionsAsArray ( ) : array
return array The array with the HTTP method omissions
    public function getHttpMethodOmissionsAsArray()
    {
        // initialize the array for the HTTP method omissions
        $httpMethodOmissions = array();
        // prepare the HTTP method omissions
        /** @var \AppserverIo\Appserver\Core\Api\Node\HttpMethodOmissionNode $httpMethodOmissionNode */
        foreach ($this->getHttpMethodOmissions() as $httpMethodOmissionNode) {
            $httpMethodOmissions[] = strtoupper($httpMethodOmissionNode->__toString());
        }
        // return the array with the HTTP method omissions
        return $httpMethodOmissions;
    }