src/Entity/Events.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EventsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Vich\UploaderBundle\Entity\File;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. #[ORM\Entity(repositoryClassEventsRepository::class)]
  8. #[Vich\Uploadable]
  9. class Events
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $imageName null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getName(): ?string
  24.     {
  25.         return $this->name;
  26.     }
  27.     public function setName(string $name): self
  28.     {
  29.         $this->name $name;
  30.         return $this;
  31.     }
  32.     public function setImageFile(?File $imageFile null): void
  33.     {
  34.         $this->imageFile $imageFile;
  35.     }
  36.     public function getImageFile(): ?File
  37.     {
  38.         return $this->imageFile;
  39.     }
  40.     public function setImageName(?string $imageName): void
  41.     {
  42.         $this->imageName $imageName;
  43.     }
  44.     public function getImageName(): ?string
  45.     {
  46.         return $this->imageName;
  47.     }
  48.     public function __toString(): string
  49.     {
  50.         // TODO: Implement __toString() method.
  51.         return $this->name;
  52.     }
  53. }