public function getConnection() { // query whether we've a wrapped instance if ($wrapped = $this->getWrapped()) { return $wrapped->getConnection(); } }