inventoryParts = new ArrayCollection(); } /** * @return Collection */ public function getInventoryParts() { return $this->inventoryParts; } /** * @param Inventory_Part $inventoryPart * * @return Part */ public function addInventoryPart(Inventory_Part $inventoryPart) { $this->inventoryParts->add($inventoryPart); return $this; } /** * @param Inventory_Part $inventoryPart * * @return Part */ public function removeInventoryPart($inventoryPart) { $this->inventoryParts->removeElement($inventoryPart); return $this; } /** * @return Category */ public function getCategory() { return $this->category; } /** * @param Category $category * * @return Part */ public function setCategory(Category $category) { $this->category = $category; return $this; } /** * @return Model */ public function getModel() { return $this->model; } /** * @param Model $model * * @return Part */ public function setModel($model) { $this->model = $model; return $this; } }