public function getServer($name)
    {

        // try to match one of the server names with the passed name
        /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $server */
        foreach ($this->getServers() as $server) {
            if ($name === $server->getName()) {
                return $server;
            }
        }
    }
public function getServer($name)
    {

        // try to match one of the server names with the passed name
        /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $server */
        foreach ($this->getServers() as $server) {
            if ($name === $server->getName()) {
                return $server;
            }
        }
    }
public function getServer ( $ name ) { // try to match one of the server names with the passed name /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $server */ foreach ( $ this -> getServers ( ) as $ server ) { if ( $ name === $ server -> getName ( ) ) { return $ server ; } } }
Returns the server with the passed name.

@param string $name The name of the server to return

@return \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface The server node matching the passed name
Returns the server with the passed name .