src/Entity/Partenaires.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PartenairesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\HttpFoundation\File\File;
  7. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  8. #[ORM\Entity(repositoryClassPartenairesRepository::class)]
  9. #[Vich\Uploadable]
  10. class Partenaires
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $name null;
  18.     #[Vich\UploadableField(mapping'partenaires'fileNameProperty'imageName'size'imageSize',)]
  19.     private ?File $imageFile null;
  20.     #[Vich\UploadableField(mapping'logos'fileNameProperty'imageNames')]
  21.     private ?File $imageFiles null;
  22.     
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?string $imageName null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?string $imageNames null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $imageSize null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $link null;
  31.     #[ORM\Column(length255)]
  32.     private ?string $description null;
  33.     #[ORM\Column(typeTypes::TEXT)]
  34.     private ?string $text null;
  35.     #[ORM\Column]
  36.     private ?bool $is_active null;
  37.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  38.     private ?string $paragraphe null;
  39.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  40.     private ?string $paragraphe_2 null;
  41.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  42.     private ?string $paragraphe_3 null;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getName(): ?string
  48.     {
  49.         return $this->name;
  50.     }
  51.     public function setName(string $name): self
  52.     {
  53.         $this->name $name;
  54.         return $this;
  55.     }
  56.     public function setImageFile(?File $imageFile null): void
  57.     {
  58.         $this->imageFile $imageFile;
  59.         if (null !== $imageFile) {
  60.             // It is required that at least one field changes if you are using doctrine
  61.             // otherwise the event listeners won't be called and the file is lost
  62.             $this->updatedAt = new \DateTimeImmutable();
  63.         }
  64.     }
  65.     public function getImageFile(): ?File
  66.     {
  67.         return $this->imageFile;
  68.     }
  69.     
  70.     public function setImageFiles(?File $imageFiles null): void
  71.     {
  72.         $this->imageFiles $imageFiles;
  73.         if (null !== $imageFiles) {
  74.             // It is required that at least one field changes if you are using doctrine
  75.             // otherwise the event listeners won't be called and the file is lost
  76.             $this->updatedAt = new \DateTimeImmutable();
  77.         }
  78.     }
  79.     public function getImageFiles(): ?File
  80.     {
  81.         return $this->imageFiles;
  82.     }
  83.     public function setImageNames(?string $imageNames): void
  84.     {
  85.         $this->imageNames $imageNames;
  86.     }
  87.     public function getImageNames(): ?string
  88.     {
  89.         return $this->imageNames;
  90.     }
  91.     public function setImageName(?string $imageName): void
  92.     {
  93.         $this->imageName $imageName;
  94.     }
  95.     public function getImageName(): ?string
  96.     {
  97.         return $this->imageName;
  98.     }
  99.     public function setImageSize(?int $imageSize): void
  100.     {
  101.         $this->imageSize $imageSize;
  102.     }
  103.     public function getImageSize(): ?int
  104.     {
  105.         return $this->imageSize;
  106.     }
  107.     
  108.     public function getLink(): ?string
  109.     {
  110.         return $this->link;
  111.     }
  112.     public function setLink(string $link): self
  113.     {
  114.         $this->link $link;
  115.         return $this;
  116.     }
  117.     public function getDescription(): ?string
  118.     {
  119.         return $this->description;
  120.     }
  121.     public function setDescription(string $description): self
  122.     {
  123.         $this->description $description;
  124.         return $this;
  125.     }
  126.     public function getText(): ?string
  127.     {
  128.         return $this->text;
  129.     }
  130.     public function setText(string $text): self
  131.     {
  132.         $this->text $text;
  133.         return $this;
  134.     }
  135.     public function isIsActive(): ?bool
  136.     {
  137.         return $this->is_active;
  138.     }
  139.     public function setIsActive(bool $is_active): self
  140.     {
  141.         $this->is_active $is_active;
  142.         return $this;
  143.     }
  144.     public function getParagraphe(): ?string
  145.     {
  146.         return $this->paragraphe;
  147.     }
  148.     public function setParagraphe(?string $paragraphe): self
  149.     {
  150.         $this->paragraphe $paragraphe;
  151.         return $this;
  152.     }
  153.     public function getParagraphe2(): ?string
  154.     {
  155.         return $this->paragraphe_2;
  156.     }
  157.     public function setParagraphe2(?string $paragraphe_2): self
  158.     {
  159.         $this->paragraphe_2 $paragraphe_2;
  160.         return $this;
  161.     }
  162.     public function getParagraphe3(): ?string
  163.     {
  164.         return $this->paragraphe_3;
  165.     }
  166.     public function setParagraphe3(?string $paragraphe_3): self
  167.     {
  168.         $this->paragraphe_3 $paragraphe_3;
  169.         return $this;
  170.     }
  171. }