setLib($lib); } /** * @param integer $id * @return Categorie */ public function setId($id) { $this->id = (int) $id; return $this; } /** * @return integer|null */ public function getId() { return $this->id; } /** * @param string $lib * @return Categorie */ public function setLib($lib) { if ('' === trim((string) $lib)) { throw new InvalidArgumentException('La lib ne peut pas être vide.'); } $this->lib = $lib; return $this; } /** * @return string|null */ public function getLib() { return $this->lib; } }