public function getType() { $index = strpos($this->dsn, ":"); return $index ? substr($this->dsn, 0, $index) : $this->dsn; }