inventories = new ArrayCollection(); } /** * Set year. * * @param int $year * * @return Set */ public function setYear($year) { $this->year = $year; return $this; } /** * Get year. * * @return int */ public function getYear() { return $this->year; } /** * @return int */ public function getPartCount() { return $this->partCount; } /** * @param int $partCount * * @return Set */ public function setPartCount($partCount) { $this->partCount = $partCount; return $this; } /** * Get parts. * * @return Collection */ public function getInventories() { return $this->inventories; } /** * @param Inventory $inventory * * @return Set */ public function addInventory(Inventory $inventory) { $this->inventories->add($inventory); return $this; } /** * @param Inventory $part * * @return Set */ public function removeInventory(Inventory $inventory) { $this->inventories->removeElement($inventory); return $this; } /** * @return Theme */ public function getTheme() { return $this->theme; } /** * @param Theme $theme */ public function setTheme($theme) { $this->theme = $theme; } }