parts = new ArrayCollection(); $this->keywords = new ArrayCollection(); } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * @return string */ public function getNumber() { return $this->number; } /** * @param string $number * * @return BuildingKit */ public function setNumber($number) { $this->number = $number; return $this; } /** * Set name. * * @param string $name * * @return BuildingKit */ public function setName($name) { $this->name = $name; return $this; } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Set year. * * @param int $year * * @return BuildingKit */ 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 BuildingKit */ public function setPartCount($partCount) { $this->partCount = $partCount; return $this; } /** * Get parts. * * @return Collection */ public function getParts() { return $this->parts; } /** * @param Part_BuildingKit $part * * @return BuildingKit */ public function addPart(Part_BuildingKit $part) { $this->parts->add($part); return $this; } /** * @param Part_BuildingKit $part * * @return BuildingKit */ public function removePart(Part_BuildingKit $part) { $this->parts->remove($part); return $this; } /** * Get keywords. * * @return Collection */ public function getKeywords() { return $this->keywords; } /** * @param Keyword $keyword * * @return BuildingKit */ public function addKeyword(Keyword $keyword) { $this->keywords->add($keyword); return $this; } /** * @param Keyword $keyword * * @return BuildingKit */ public function removeKeyword(Keyword $keyword) { $this->keywords->remove($keyword); return $this; } }