_init(ConsentLogResource::class); } /** * @inheritDoc */ public function getCustomerId(): int { return (int) $this->_getData(ConsentLogInterface::CUSTOMER_ID); } /** * @inheritDoc */ public function getGuestEmail(): string { return (string) $this->_getData(ConsentLogInterface::GUEST_EMAIL); } /** * @inheritDoc */ public function getWebsiteId(): int { return (int) $this->_getData(ConsentLogInterface::WEBSITE_ID); } /** * @inheritDoc */ public function getSettings(): array { return (array) $this->_getData(ConsentLogInterface::SETTINGS); } /** * @inheritDoc */ public function getIpAddress(): string { return (string) $this->_getData(ConsentLogInterface::IP_ADDRESS); } /** * @inheritDoc */ public function getCreatedAt(): string { return (string) $this->_getData(ConsentLogInterface::CREATED_AT); } /** * @inheritDoc */ public function getUserAgent(): string { return (string) $this->_getData(ConsentLogInterface::USER_AGENT); } /** * @inheritDoc */ public function getUrl(): string { return (string) $this->_getData(ConsentLogInterface::URL); } /** * @inheritDoc */ public function setCustomerId(int $customerId): ConsentLogInterface { return $this->setData(ConsentLogInterface::CUSTOMER_ID, $customerId); } /** * @inheritDoc */ public function setGuestEmail(string $guestEmail): ConsentLogInterface { return $this->setData(ConsentLogInterface::GUEST_EMAIL, $guestEmail); } /** * @inheritDoc */ public function setWebsiteId(int $websiteId): ConsentLogInterface { return $this->setData(ConsentLogInterface::WEBSITE_ID, $websiteId); } /** * @inheritDoc */ public function setSettings(array $settings): ConsentLogInterface { return $this->setData(ConsentLogInterface::SETTINGS, $settings); } /** * @inheritDoc */ public function setIpAddress(string $ipAddress): ConsentLogInterface { return $this->setData(ConsentLogInterface::IP_ADDRESS, $ipAddress); } /** * @inheritDoc */ public function setCreatedAt(string $gmtDateTime): ConsentLogInterface { return $this->setData(ConsentLogInterface::CREATED_AT, $gmtDateTime); } /** * @inheritDoc */ public function setUserAgent(string $userAgent): ConsentLogInterface { return $this->setData(ConsentLogInterface::USER_AGENT, $userAgent); } /** * @inheritDoc */ public function setUrl(string $url): ConsentLogInterface { return $this->setData(ConsentLogInterface::URL, $url); } }