public function setNameProperty($nameProperty) { $this->checkNameProperty($nameProperty); $this->nameProperty = $nameProperty; return $this; }