public function getEnvironmentVariablesAsArray()
    {
        // Iterate over the environmentVariable nodes and sort them into an array
        $environmentVariables = array();
        /** @var \AppserverIo\Appserver\Core\Api\Node\EnvironmentVariableNode $environmentVariableNode */
        foreach ($this->getEnvironmentVariables() as $environmentVariableNode) {
            // Restructure to an array
            $environmentVariables[] = array(
                'condition' => $environmentVariableNode->getCondition(),
                'definition' => $environmentVariableNode->getDefinition()
            );
        }

        // Return what we got
        return $environmentVariables;
    }
public function getEnvironmentVariablesAsArray()
    {
        // Iterate over the environmentVariable nodes and sort them into an array
        $environmentVariables = array();
        /** @var \AppserverIo\Appserver\Core\Api\Node\EnvironmentVariableNode $environmentVariableNode */
        foreach ($this->getEnvironmentVariables() as $environmentVariableNode) {
            // Restructure to an array
            $environmentVariables[] = array(
                'condition' => $environmentVariableNode->getCondition(),
                'definition' => $environmentVariableNode->getDefinition()
            );
        }

        // Return what we got
        return $environmentVariables;
    }
public function getEnvironmentVariablesAsArray ( ) { // Iterate over the environmentVariable nodes and sort them into an array $ environmentVariables = array ( ) ; /** @var \AppserverIo\Appserver\Core\Api\Node\EnvironmentVariableNode $environmentVariableNode */ foreach ( $ this -> getEnvironmentVariables ( ) as $ environmentVariableNode ) { // Restructure to an array $ environmentVariables [ ] = array ( 'condition' => $ environmentVariableNode -> getCondition ( ) , 'definition' => $ environmentVariableNode -> getDefinition ( ) ) ; } // Return what we got return $ environmentVariables ; }
Returns the environmentVariables as an associative array.

@return array The array with the sorted environmentVariables
Returns the environmentVariables as an associative array .