src/Entity/CompareProduct.php line 31

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  6. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use App\Model\LangParamInterface;
  10. use App\Model\LangParamRelationInterface;
  11. use Doctrine\Common\Collections\ArrayCollection;
  12. use Doctrine\Common\Collections\Collection;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Symfony\Component\Validator\Constraints as Assert;
  15. use Symfony\Component\HttpFoundation\File\UploadedFile;
  16. use Symfony\Component\HttpFoundation\File\File;
  17. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  18. /**
  19.  * @ORM\Entity
  20.  * @ORM\Table(name="compare_product")
  21.  */
  22. class CompareProduct implements TimestampableInterfaceBlameableInterfaceSoftDeletableInterface  {
  23.     use BlameableTrait;
  24.     use TimestampableTrait;
  25.     
  26.     use SoftDeletableTrait;
  27.     
  28. /**
  29.      * @ORM\Id
  30.      * @ORM\Column(type="integer")
  31.      * @ORM\GeneratedValue(strategy="AUTO")
  32.      */
  33.     protected $id;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\Product")
  36.      */
  37.     private $product;
  38.     /**
  39.      *
  40.      * @ORM\Column(name="session", type="text", nullable=true)
  41.      */
  42.     private $session;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getProduct(): ?Product
  48.     {
  49.         return $this->product;
  50.     }
  51.     public function setProduct(?Product $product): self
  52.     {
  53.         $this->product $product;
  54.         return $this;
  55.     }
  56.     public function getSession(): ?string
  57.     {
  58.         return $this->session;
  59.     }
  60.     public function setSession(?string $session): self
  61.     {
  62.         $this->session $session;
  63.         return $this;
  64.     }
  65. }