for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Onigoetz\Deployer\Configuration;
use Onigoetz\Deployer\Configuration\Containers\ConfigurationContainer;
class Server extends ConfigurationContainer
{
public static $defaultPassword = null;
public function getHost()
return $this->getValueOrFail('host', "no 'host' specified in server '{$this->name}'");
}
public function getUsername()
return $this->getValueOrFail('username', "no 'username' specified in server '{$this->name}'");
public function getPassword()
return $this->getValueOrDefault('password', self::$defaultPassword);
/**
* {@inheritdoc}
*/
public function checkValidity()
$this->getHost();
$this->getUsername();
return true;