public function __construct($dsn = null, array $options = null) { if ($dsn) { $this->setDsn($dsn); } if ($options) { $this->setConnectOptions($options); } }