public function getUpstreamServersAsArray()
    {
        // iterate over all upstream servers nodes and transform them to an array
        $upstreamServers = array();
        /** @var \AppserverIo\Appserver\Core\Api\Node\UpstreamServerNode $upstreamServerNode */
        foreach ($this->getUpstreamServers() as $upstreamServerNode) {
            // build up array
            $upstreamServers[] = array(
                'name' => $upstreamServerNode->getName(),
                'type' => $upstreamServerNode->getType(),
                'params' => $upstreamServerNode->getParamsAsArray()
            );
        }
        // return upstream servers array
        return $upstreamServers;
    }
public function getUpstreamServersAsArray()
    {
        // iterate over all upstream servers nodes and transform them to an array
        $upstreamServers = array();
        /** @var \AppserverIo\Appserver\Core\Api\Node\UpstreamServerNode $upstreamServerNode */
        foreach ($this->getUpstreamServers() as $upstreamServerNode) {
            // build up array
            $upstreamServers[] = array(
                'name' => $upstreamServerNode->getName(),
                'type' => $upstreamServerNode->getType(),
                'params' => $upstreamServerNode->getParamsAsArray()
            );
        }
        // return upstream servers array
        return $upstreamServers;
    }
public function getUpstreamServersAsArray ( ) { // iterate over all upstream servers nodes and transform them to an array $ upstreamServers = array ( ) ; /** @var \AppserverIo\Appserver\Core\Api\Node\UpstreamServerNode $upstreamServerNode */ foreach ( $ this -> getUpstreamServers ( ) as $ upstreamServerNode ) { // build up array $ upstreamServers [ ] = array ( 'name' => $ upstreamServerNode -> getName ( ) , 'type' => $ upstreamServerNode -> getType ( ) , 'params' => $ upstreamServerNode -> getParamsAsArray ( ) ) ; } // return upstream servers array return $ upstreamServers ; }
Returns the upstream servers as an associative array

@return array The array with the upstream servers
Returns the upstream servers as an associative array