public function getServersAsArray()
    {

        // initialize the array for the servers
        $servers = array();

        // iterate over all found servers and assemble the array
        /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $server */
        foreach ($this->getServers() as $server) {
            $servers[$server->getName()] = $server;
        }

        // return the array with the servers
        return $servers;
    }
public function getServersAsArray()
    {

        // initialize the array for the servers
        $servers = array();

        // iterate over all found servers and assemble the array
        /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $server */
        foreach ($this->getServers() as $server) {
            $servers[$server->getName()] = $server;
        }

        // return the array with the servers
        return $servers;
    }
public function getServersAsArray ( ) { // initialize the array for the servers $ servers = array ( ) ; // iterate over all found servers and assemble the array /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $server */ foreach ( $ this -> getServers ( ) as $ server ) { $ servers [ $ server -> getName ( ) ] = $ server ; } // return the array with the servers return $ servers ; }
Returns the servers as array with the server name as key.

@return array The array with the servers
Returns the servers as array with the server name as key .