pdo = $pdo; if ($profiler === null) { $profiler = new Profiler(); } $this->setProfiler($profiler); $driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME); $this->setParser($this->newParser($driver)); $this->setQuoteName($driver); } /** * * Connects to the database. * * @return null * */ public function connect() { // already connected } /** * * Disconnects from the database; disallowed with decorated PDO connections. * * @return null * */ public function disconnect() { $message = "Cannot disconnect a DecoratedPdo instance."; throw new Exception\CannotDisconnect($message); } }