for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebPT\ZendCouchbaseModule;
use Assert\Assertion;
use Zend\Stdlib\AbstractOptions;
class ClusterOptions extends AbstractOptions
{
/** @var string */
private $dsn = 'couchbase://localhost';
private $username = '';
private $password = '';
/**
* @return string
*/
public function getDsn()
return $this->dsn;
}
* @param string $dsn
* @return void
* @throws \Assert\AssertionFailedException
public function setDsn($dsn)
Assertion::string($dsn);
$this->dsn = $dsn;
public function getUsername()
return $this->username;
* @param string $username
public function setUsername($username)
Assertion::string($username);
$this->username = $username;
public function getPassword()
return $this->password;
* @param string $password
public function setPassword($password)
Assertion::string($password);
$this->password = $password;