Deployer\Server\Configuration::getHost PHP Method

getHost() public method

Get host for connection
public getHost ( ) : string
return string
    public function getHost()
    {
        return $this->host;
    }

Usage Example

Example #1
0
 /**
  * Construct
  *
  * @param Configuration $config
  * @param Environment   $env
  */
 public function __construct(Configuration $config, Environment $env)
 {
     $this->config = $config;
     $this->env = $env;
     $env->setAsProtected('server', ['name' => $config->getName(), 'host' => $config->getHost(), 'port' => $config->getPort()]);
 }