<?php
declare(strict_types=1);
namespace App\Entity\Customer;
use Doctrine\ORM\Mapping as ORM;
use Setono\SyliusMailchimpPlugin\Model\CustomerInterface;
use Setono\SyliusMailchimpPlugin\Model\CustomerTrait;
use Sylius\Component\Core\Model\Customer as BaseCustomer;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_customer")
*/
class Customer extends BaseCustomer implements CustomerInterface
{
use CustomerTrait;
/**
* @ORM\Column(name="old_id", type="integer", nullable=true)
*/
private ?int $oldId;
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $comment = null;
/**
* @ORM\Column(type="simple_array", nullable=true)
*/
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;
}
/**
* @return array
*/
public function getProductsVisited(): ?array
{
return $this->productsVisited;
}
public function setProductsVisited(?array $productsVisited): void
{
$this->productsVisited = $productsVisited;
}
public function getOldId(): ?int
{
return $this->oldId;
}
public function setOldId(?int $oldId): void
{
$this->oldId = $oldId;
}
}