AppserverIo\Appserver\Core\Api\Node\ParamsNodeTrait::getParamsAsArray PHP Method

getParamsAsArray() public method

Returns the params casted to the defined type as associative array.
public getParamsAsArray ( ) : array
return array The array with the casted params
    public function getParamsAsArray()
    {
        $params = array();
        if (is_array($this->getParams())) {
            foreach ($this->getParams() as $param) {
                $params[$param->getName()] = $param->castToType();
            }
        }
        return $params;
    }