public function setName($name) { if (empty($name)) { throw new InvalidException('Suggest name has to be set'); } $this->_name = $name; return $this; }