id = $id; return $this; } /** * Constructor. */ public function __construct() { $this->items = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set label. * * @param string $label * * @return Itemcategory */ public function setLabel($label) { $this->label = $label; return $this; } /** * Get label. * * @return string */ public function getLabel() { return $this->label; } /** * Set color. * * @param string $color * * @return Itemcategory */ public function setColor($color) { $this->color = $color; return $this; } /** * Get color. * * @return string */ public function getColor() { return $this->color; } /** * Set rowOrder. * * @param int $rowOrder * * @return Itemcategory */ public function setRowOrder($rowOrder) { $this->rowOrder = $rowOrder; return $this; } /** * Get rowOrder. * * @return int */ public function getRowOrder() { return $this->rowOrder; } /** * Set icon. * * @param Icon $icon * * @return Itemcategory */ public function setIcon(Icon $icon = null) { $this->icon = $icon; return $this; } /** * Get icon. * * @return Icon */ public function getIcon() { return $this->icon; } /** * Add item. * * @return Itemcategory */ public function addItem(Item $item) { $this->items[] = $item; return $this; } /** * Remove item. */ public function removeItem(Item $item) { $this->items->removeElement($item); } /** * Get items. * * @return \Doctrine\Common\Collections\Collection */ public function getItems() { return $this->items; } }