/** * getter of copy of self instance * @return DbStateHandler */ public function getCopy() { $copy = new DbStateHandler($this->task, $this->charset); $copy->setDbPlatform($this->dbPlatform); return $copy; }