setUpdatedAt(new \DateTime('now')); if (!isset($this->createdAt) || $this->getCreatedAt() === null) { $this->setCreatedAt(new \DateTime('now')); } } /** * @return \DateTime */ public function getCreatedAt(): \DateTime { return $this->createdAt; } /** * @param \DateTime $createdAt */ public function setCreatedAt(\DateTime $createdAt): void { $this->createdAt = $createdAt; } /** * @return int */ public function getId(): int { return $this->id; } /** * @return Customer */ public function getCustomer(): Customer { return $this->Customer; } /** * @param Customer $Customer */ public function setCustomer(Customer $Customer): void { $this->Customer = $Customer; } /** * @return string */ public function getCookieName(): string { return $this->cookie_name; } /** * @param string $cookie_name */ public function setCookieName(string $cookie_name): void { $this->cookie_name = $cookie_name; } /** * @return string */ public function getCookieValue(): string { return $this->cookie_value; } /** * @param string $cookie_value */ public function setCookieValue(string $cookie_value): void { $this->cookie_value = $cookie_value; } /** * @return \DateTime */ public function getCookieExpireDate(): \DateTime { return $this->cookie_expire_date; } /** * @param \DateTime $cookie_expire_date */ public function setCookieExpireDate(\DateTime $cookie_expire_date): void { $this->cookie_expire_date = $cookie_expire_date; } /** * @return \DateTime */ public function getUpdatedAt(): \DateTime { return $this->updatedAt; } /** * @param \DateTime $updatedAt */ public function setUpdatedAt(\DateTime $updatedAt): void { $this->updatedAt = $updatedAt; } }