id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Sets closes. * * @param \DateTime $closes * * @return $this */ public function setCloses(\DateTime $closes = null) { $this->closes = $closes; return $this; } /** * Gets closes. * * @return \DateTime */ public function getCloses() { return $this->closes; } /** * Sets dayOfWeek. * * @param array $dayOfWeek * * @return $this */ public function setDayOfWeek($dayOfWeek) { $this->dayOfWeek = $dayOfWeek; return $this; } /** * Gets dayOfWeek. * * @return array */ public function getDayOfWeek() { return $this->dayOfWeek; } /** * Sets opens. * * @param \DateTime $opens * * @return $this */ public function setOpens(\DateTime $opens = null) { $this->opens = $opens; return $this; } /** * Gets opens. * * @return \DateTime */ public function getOpens() { return $this->opens; } /** * Sets validFrom. * * @param \DateTime $validFrom * * @return $this */ public function setValidFrom(\DateTime $validFrom = null) { $this->validFrom = $validFrom; return $this; } /** * Gets validFrom. * * @return \DateTime */ public function getValidFrom() { return $this->validFrom; } /** * Sets validThrough. * * @param \DateTime $validThrough * * @return $this */ public function setValidThrough(\DateTime $validThrough = null) { $this->validThrough = $validThrough; return $this; } /** * Gets validThrough. * * @return \DateTime */ public function getValidThrough() { return $this->validThrough; } }