/** * @param Identifier $Identifier * @param ITypeInterface $Type * @param string $Username * @param string $Password * @param string $Database * @param string $Host * @param null|int $Port * * @param int $Timeout * * @throws \Exception */ public final function __construct(Identifier $Identifier, ITypeInterface $Type, $Username, $Password, $Database, $Host, $Port = null, $Timeout = 5) { $Consumer = $Identifier->getConsumer(); $this->setConnection($Username, $Password, $Database . (empty($Consumer) ? '' : '_' . $Consumer), $Type->getIdentifier(), $Host, $Port, $Timeout); }