src/Entity/Gallery.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GalleryRepository;
  4. use App\Repository\MetaRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassGalleryRepository::class)]
  8. class Gallery
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column]
  15.     private string|null $image null;
  16.     #[ORM\Column]
  17.     private string|null $compressedImage null;
  18.     #[ORM\Column]
  19.     private string|null $documentNumber null;
  20.     #[ORM\Column]
  21.     private string|null $locale null;
  22.     #[ORM\Column(type'string'nullabletrue)]
  23.     private string|null $letterId null;
  24.     #[ORM\Column]
  25.     private string|null $templateId null;
  26.     #[ORM\Column(type'datetime'nullabletrue)]
  27.     private \DateTimeInterface|null $createdAt null;
  28.     #[ORM\Column(type'boolean'nullabletrue)]
  29.     private  $isShow false;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private  $isPrint true;
  32.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'gallery')]
  33.     #[ORM\JoinColumn(referencedColumnName'id'nullabletrueonDelete'CASCADE')]
  34.     private User $user;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function setId(?int $id): void
  40.     {
  41.         $this->id $id;
  42.     }
  43.     public function getImage(): ?string
  44.     {
  45.         return $this->image;
  46.     }
  47.     public function setImage(?string $image): void
  48.     {
  49.         $this->image $image;
  50.     }
  51.     public function getDocumentNumber(): ?string
  52.     {
  53.         return $this->documentNumber;
  54.     }
  55.     public function setDocumentNumber(?string $documentNumber): void
  56.     {
  57.         $this->documentNumber $documentNumber;
  58.     }
  59.     /**
  60.      * @return string|null
  61.      */
  62.     public function getTemplateId()
  63.     {
  64.         return $this->templateId;
  65.     }
  66.     /**
  67.      * @param string|null $templateId
  68.      */
  69.     public function setTemplateId($templateId)
  70.     {
  71.         $this->templateId $templateId;
  72.     }
  73.     /**
  74.      * @return \DateTimeInterface|null
  75.      */
  76.     public function getCreatedAt()
  77.     {
  78.         return $this->createdAt;
  79.     }
  80.     /**
  81.      * @param \DateTimeInterface|null $createdAt
  82.      */
  83.     public function setCreatedAt($createdAt)
  84.     {
  85.         $this->createdAt $createdAt;
  86.     }
  87.     /**
  88.      * @return bool
  89.      */
  90.     public function isShow()
  91.     {
  92.         return $this->isShow;
  93.     }
  94.     /**
  95.      * @param bool $isShow
  96.      */
  97.     public function setIsShow($isShow)
  98.     {
  99.         $this->isShow $isShow;
  100.     }
  101.     public function isIsShow(): ?bool
  102.     {
  103.         return $this->isShow;
  104.     }
  105.     public function getUser(): ?User
  106.     {
  107.         return $this->user;
  108.     }
  109.     public function setUser(?User $user): static
  110.     {
  111.         $this->user $user;
  112.         return $this;
  113.     }
  114.     /**
  115.      * @return string|null
  116.      */
  117.     public function getCompressedImage(): ?string
  118.     {
  119.         return $this->compressedImage;
  120.     }
  121.     /**
  122.      * @param string|null $compressedImage
  123.      */
  124.     public function setCompressedImage(?string $compressedImage): void
  125.     {
  126.         $this->compressedImage $compressedImage;
  127.     }
  128.     /**
  129.      * @return bool
  130.      */
  131.     public function isPrint(): bool
  132.     {
  133.         return $this->isPrint;
  134.     }
  135.     /**
  136.      * @param bool $isPrint
  137.      */
  138.     public function setIsPrint(bool $isPrint): void
  139.     {
  140.         $this->isPrint $isPrint;
  141.     }
  142.     public function isIsPrint(): ?bool
  143.     {
  144.         return $this->isPrint;
  145.     }
  146.     /**
  147.      * @return string|null
  148.      */
  149.     public function getLetterId(): ?string
  150.     {
  151.         return $this->letterId;
  152.     }
  153.     /**
  154.      * @param string|null $letterId
  155.      */
  156.     public function setLetterId(?string $letterId): void
  157.     {
  158.         $this->letterId $letterId;
  159.     }
  160.     /**
  161.      * @return string|null
  162.      */
  163.     public function getLocale(): ?string
  164.     {
  165.         return $this->locale;
  166.     }
  167.     /**
  168.      * @param string|null $locale
  169.      */
  170.     public function setLocale(?string $locale): void
  171.     {
  172.         $this->locale $locale;
  173.     }
  174. }