src/Entity/Screenshot.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ScreenshotRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ScreenshotRepository::class)
  7.  */
  8. class Screenshot
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Guide::class, inversedBy="screenshots")
  18.      * @ORM\JoinColumn(onDelete="CASCADE")
  19.      */
  20.     private $guide;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $titre;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $photo;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getGuide(): ?Guide
  34.     {
  35.         return $this->guide;
  36.     }
  37.     public function setGuide(?Guide $guide): self
  38.     {
  39.         $this->guide $guide;
  40.         return $this;
  41.     }
  42.     public function getTitre(): ?string
  43.     {
  44.         return $this->titre;
  45.     }
  46.     public function setTitre(?string $titre): self
  47.     {
  48.         $this->titre $titre;
  49.         return $this;
  50.     }
  51.     public function getPhoto(): ?string
  52.     {
  53.         return $this->photo;
  54.     }
  55.     public function setPhoto(?string $photo): self
  56.     {
  57.         $this->photo $photo;
  58.         return $this;
  59.     }
  60. }