src/Entity/Customer/Customer.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Customer;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Setono\SyliusMailchimpPlugin\Model\CustomerInterface;
  6. use Setono\SyliusMailchimpPlugin\Model\CustomerTrait;
  7. use Sylius\Component\Core\Model\Customer as BaseCustomer;
  8. /**
  9.  * @ORM\Entity
  10.  * @ORM\Table(name="sylius_customer")
  11.  */
  12. class Customer extends BaseCustomer implements CustomerInterface
  13. {
  14.     use CustomerTrait;
  15.     /**
  16.      * @ORM\Column(name="old_id", type="integer", nullable=true)
  17.      */
  18.     private ?int $oldId;
  19.     /**
  20.      * @ORM\Column(type="text", nullable=true)
  21.      */
  22.     private ?string $comment null;
  23.     /**
  24.      * @ORM\Column(type="simple_array", nullable=true)
  25.      */
  26.     private array $productsVisited = [];
  27.     /**
  28.      * Get the value of comment.
  29.      */
  30.     public function getComment()
  31.     {
  32.         return $this->comment;
  33.     }
  34.     /**
  35.      * Set the value of comment.
  36.      *
  37.      * @return self
  38.      */
  39.     public function setComment($comment)
  40.     {
  41.         $this->comment $comment;
  42.         return $this;
  43.     }
  44.     /**
  45.      * @return array
  46.      */
  47.     public function getProductsVisited(): ?array
  48.     {
  49.         return $this->productsVisited;
  50.     }
  51.     public function setProductsVisited(?array $productsVisited): void
  52.     {
  53.         $this->productsVisited $productsVisited;
  54.     }
  55.     public function getOldId(): ?int
  56.     {
  57.         return $this->oldId;
  58.     }
  59.     public function setOldId(?int $oldId): void
  60.     {
  61.         $this->oldId $oldId;
  62.     }
  63. }