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 as SetonoSyliusMailchimpPluginCustomerInterface;
  6. use Setono\SyliusMailchimpPlugin\Model\CustomerTrait as SetonoSyliusMailchimpPluginCustomerTrait;
  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 SetonoSyliusMailchimpPluginCustomerInterface
  13. {
  14.     use SetonoSyliusMailchimpPluginCustomerTrait;
  15.     /** @ORM\Column(type="text", nullable=true) */
  16.     private ?string $comment null;
  17.     /** @ORM\Column(type="json", name="products_visited") */
  18.     private ?array $productsVisited = [];
  19.     /**
  20.      * Get the value of comment.
  21.      */
  22.     public function getComment()
  23.     {
  24.         return $this->comment;
  25.     }
  26.     /**
  27.      * Set the value of comment.
  28.      *
  29.      * @return self
  30.      */
  31.     public function setComment($comment)
  32.     {
  33.         $this->comment $comment;
  34.         return $this;
  35.     }
  36.     public function getProductsVisited(): ?array
  37.     {
  38.         return $this->productsVisited;
  39.     }
  40.     public function setProductsVisited(?array $productsVisited): void
  41.     {
  42.         $this->productsVisited $productsVisited;
  43.     }
  44. }