function __construct($source) { $this->source = (string) $source; $this->dns = parseDSN($this->source); $this->db = $this->connect(); }