/** * @param Profiler\ProfilerInterface $profiler * @return Adapter */ public function setProfiler(Profiler\ProfilerInterface $profiler) { $this->profiler = $profiler; if ($this->driver instanceof Profiler\ProfilerAwareInterface) { $this->driver->setProfiler($profiler); } return $this; }