<?php
declare(strict_types=1);
namespace App\Entity\Customer;
use Doctrine\ORM\Mapping as ORM;
use Setono\SyliusMailchimpPlugin\Model\CustomerInterface as SetonoSyliusMailchimpPluginCustomerInterface;
use Setono\SyliusMailchimpPlugin\Model\CustomerTrait as SetonoSyliusMailchimpPluginCustomerTrait;
use Sylius\Component\Core\Model\Customer as BaseCustomer;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_customer")
*/
class Customer extends BaseCustomer implements SetonoSyliusMailchimpPluginCustomerInterface
{
use SetonoSyliusMailchimpPluginCustomerTrait;
/** @ORM\Column(type="text", nullable=true) */
private ?string $comment = null;
/** @ORM\Column(type="json", name="products_visited") */
private ?array $productsVisited = [];
/**
* Get the value of comment.
*/
public function getComment()
{
return $this->comment;
}
/**
* Set the value of comment.
*
* @return self
*/
public function setComment($comment)
{
$this->comment = $comment;
return $this;
}
public function getProductsVisited(): ?array
{
return $this->productsVisited;
}
public function setProductsVisited(?array $productsVisited): void
{
$this->productsVisited = $productsVisited;
}
}