public function setCheckDuplicate($checkDuplicate = null) { $this->checkDuplicate = $checkDuplicate; return $this; }