src/Entity/Image.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ImageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassImageRepository::class)]
  6. class Image
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'images')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?Galerie $galerie null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $image null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getGalerie(): ?Galerie
  22.     {
  23.         return $this->galerie;
  24.     }
  25.     public function setGalerie(?Galerie $galerie): self
  26.     {
  27.         $this->galerie $galerie;
  28.         return $this;
  29.     }
  30.     public function getImage(): ?string
  31.     {
  32.         return $this->image;
  33.     }
  34.     public function setImage(string $image): self
  35.     {
  36.         $this->image $image;
  37.         return $this;
  38.     }
  39. }