public function setDao(\Phrozn\Registry\Dao $dao) { $this->dao = $dao; if ($dao instanceof Dao) { $dao->setContainer($this); } return $this; }