src/Entity/PrestationEntreprise.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrestationEntrepriseRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPrestationEntrepriseRepository::class)]
  7. class PrestationEntreprise
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $categName null;
  15.     #[ORM\Column(length1024)]
  16.     private ?string $description null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $image null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $slug null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?bool $isActive null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $creationDate null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $modificationDate null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $presentation null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $subtitle null;
  31.     #[ORM\Column(typeTypes::SIMPLE_ARRAYnullabletrue)]
  32.     private array $galleryImages = [];
  33.     #[ORM\Column]
  34.     private ?bool $isWeb null;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getCategName(): ?string
  40.     {
  41.         return $this->categName;
  42.     }
  43.     public function setCategName(string $categName): self
  44.     {
  45.         $this->categName $categName;
  46.         return $this;
  47.     }
  48.     public function getDescription(): ?string
  49.     {
  50.         return $this->description;
  51.     }
  52.     public function setDescription(string $description): self
  53.     {
  54.         $this->description $description;
  55.         return $this;
  56.     }
  57.     public function getImage(): ?string
  58.     {
  59.         return $this->image;
  60.     }
  61.     public function setImage(?string $image): self
  62.     {
  63.         if ($image !== null) {
  64.             $this->image $image;
  65.         } else {
  66.             $this->image NULL;
  67.         }
  68.         return $this;
  69.     }
  70.     public function getSlug(): ?string
  71.     {
  72.         return $this->slug;
  73.     }
  74.     public function setSlug(string $slug): self
  75.     {
  76.         $this->slug $slug;
  77.         return $this;
  78.     }
  79.     public function isIsActive(): ?bool
  80.     {
  81.         return $this->isActive;
  82.     }
  83.     public function setIsActive(?bool $isActive): self
  84.     {
  85.         $this->isActive $isActive;
  86.         return $this;
  87.     }
  88.     public function getCreationDate(): ?string
  89.     {
  90.         return $this->creationDate;
  91.     }
  92.     public function setCreationDate(?string $creationDate): self
  93.     {
  94.         $this->creationDate $creationDate;
  95.         return $this;
  96.     }
  97.     public function getModificationDate(): ?string
  98.     {
  99.         return $this->modificationDate;
  100.     }
  101.     public function setModificationDate(?string $modificationDate): self
  102.     {
  103.         $this->modificationDate $modificationDate;
  104.         return $this;
  105.     }
  106.     public function getPresentation(): ?string
  107.     {
  108.         return $this->presentation;
  109.     }
  110.     public function setPresentation(?string $presentation): self
  111.     {
  112.         $this->presentation $presentation;
  113.         return $this;
  114.     }
  115.     public function getSubtitle(): ?string
  116.     {
  117.         return $this->subtitle;
  118.     }
  119.     public function setSubtitle(?string $subtitle): self
  120.     {
  121.         $this->subtitle $subtitle;
  122.         return $this;
  123.     }
  124.     public function getGalleryImages(): array
  125.     {
  126.         return $this->galleryImages;
  127.     }
  128.     public function setGalleryImages(?array $galleryImages): self
  129.     {
  130.         if ($galleryImages == null) {
  131.             $this->galleryImages = [];
  132.         } else {
  133.             $this->galleryImages $galleryImages;
  134.         }
  135.         return $this;
  136.     }
  137.     public function isIsWeb(): ?bool
  138.     {
  139.         return $this->isWeb;
  140.     }
  141.     public function setIsWeb(bool $isWeb): self
  142.     {
  143.         $this->isWeb $isWeb;
  144.         return $this;
  145.     }
  146. }