public getPassword ( ) : string | null | ||
Результат | string | null |
public function getPassword()
{
return isset($this->_params['password']) ? $this->_params['password'] : null;
}
public function getDsn() { $driver = $this->connection->getDriver()->getName(); $user = $this->connection->getUsername(); $pass = $this->connection->getPassword(); $host = $this->connection->getHost(); $db = $this->connection->getDatabase(); return "{$driver}://{$user}:{$pass}@{$host}/{$db}"; }