src/Entity/Photo.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PhotoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PhotoRepository::class)
  7.  */
  8. class Photo
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $lien;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="photos")
  22.      */
  23.     private $produit;
  24.     /**
  25.      * @ORM\Column(type="datetime", nullable=true)
  26.      */
  27.     private $createdat;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=true)
  30.      */
  31.     private $isnotsure;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="photoscreate")
  34.      */
  35.     private $creator;
  36.     /**
  37.      * @ORM\Column(type="boolean", nullable=true)
  38.      */
  39.     private $downloaded;
  40.     /**
  41.      * @ORM\Column(type="boolean", nullable=true)
  42.      */
  43.     private $notdisponible;
  44.     /**
  45.      * @ORM\Column(type="boolean", nullable=true)
  46.      */
  47.     private $isCopied;
  48.     /**
  49.      * @ORM\Column(type="boolean", nullable=true)
  50.      */
  51.     private $isChecked;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getLien(): ?string
  57.     {
  58.         return $this->lien;
  59.     }
  60.     public function setLien(string $lien): self
  61.     {
  62.         $this->lien $lien;
  63.         return $this;
  64.     }
  65.     public function getProduit(): ?Product
  66.     {
  67.         return $this->produit;
  68.     }
  69.     public function setProduit(?Product $produit): self
  70.     {
  71.         $this->produit $produit;
  72.         return $this;
  73.     }
  74.     public function getCreatedat(): ?\DateTimeInterface
  75.     {
  76.         return $this->createdat;
  77.     }
  78.     public function setCreatedat(?\DateTimeInterface $createdat): self
  79.     {
  80.         $this->createdat $createdat;
  81.         return $this;
  82.     }
  83.     public function isIsnotsure(): ?bool
  84.     {
  85.         return $this->isnotsure;
  86.     }
  87.     public function setIsnotsure(?bool $isnotsure): self
  88.     {
  89.         $this->isnotsure $isnotsure;
  90.         return $this;
  91.     }
  92.     public function getCreator(): ?user
  93.     {
  94.         return $this->creator;
  95.     }
  96.     public function setCreator(?user $creator): self
  97.     {
  98.         $this->creator $creator;
  99.         return $this;
  100.     }
  101.     public function isDownloaded(): ?bool
  102.     {
  103.         return $this->downloaded;
  104.     }
  105.     public function setDownloaded(?bool $downloaded): self
  106.     {
  107.         $this->downloaded $downloaded;
  108.         return $this;
  109.     }
  110.     public function isNotdisponible(): ?bool
  111.     {
  112.         return $this->notdisponible;
  113.     }
  114.     public function setNotdisponible(?bool $notdisponible): self
  115.     {
  116.         $this->notdisponible $notdisponible;
  117.         return $this;
  118.     }
  119.     public function isIsCopied(): ?bool
  120.     {
  121.         return $this->isCopied;
  122.     }
  123.     public function setIsCopied(?bool $isCopied): self
  124.     {
  125.         $this->isCopied $isCopied;
  126.         return $this;
  127.     }
  128.     public function isIsChecked(): ?bool
  129.     {
  130.         return $this->isChecked;
  131.     }
  132.     public function setIsChecked(?bool $isChecked): self
  133.     {
  134.         $this->isChecked $isChecked;
  135.         return $this;
  136.     }
  137. }