AppserverIo\Appserver\Core\Api\Node\SystemPropertiesNodeTrait::getSystemPropertiesAsArray PHP Method

getSystemPropertiesAsArray() public method

Returns the system properties casted to the defined type as associative array.
public getSystemPropertiesAsArray ( ) : array
return array The array with the casted system properties
    public function getSystemPropertiesAsArray()
    {
        $systemProperties = array();
        if (is_array($this->getSystemProperties())) {
            foreach ($this->getSystemProperties() as $systemProperty) {
                $systemProperties[$systemProperty->getName()] = $systemProperty->castToType();
            }
        }
        return $systemProperties;
    }