src/Entity/Seance.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use App\Repository\SeanceRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassSeanceRepository::class)]
  9. class Seance
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $label null;
  17.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  18.     private ?\DateTimeInterface $creationDate null;
  19.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  20.     private ?\DateTimeInterface $modificationDate null;
  21.     #[ORM\Column]
  22.     private ?bool $isActive null;
  23.     #[ORM\ManyToOne(inversedBy'seances')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?CategorySeance $category null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $image null;
  28.     #[ORM\Column(length255)]
  29.     private ?string $slug null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $duree '1h';
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?int $prix null;
  34.     #[ORM\Column(nullabletrue)]
  35.     private ?int $nombre_photo_couleur null;
  36.     #[ORM\Column(nullabletrue)]
  37.     private ?int $nombre_photo_nb null;
  38.     #[ORM\Column(nullabletrue)]
  39.     private ?int $nombre_tirage null;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getLabel(): ?string
  45.     {
  46.         return $this->label;
  47.     }
  48.     public function setLabel(string $label): self
  49.     {
  50.         $this->label $label;
  51.         return $this;
  52.     }
  53.     public function getCreationDate(): ?\DateTimeInterface
  54.     {
  55.         return $this->creationDate;
  56.     }
  57.     public function setCreationDate(\DateTimeInterface $creationDate): self
  58.     {
  59.         $this->creationDate $creationDate;
  60.         return $this;
  61.     }
  62.     public function getModificationDate(): ?\DateTimeInterface
  63.     {
  64.         return $this->modificationDate;
  65.     }
  66.     public function setModificationDate(\DateTimeInterface $modificationDate): self
  67.     {
  68.         $this->modificationDate $modificationDate;
  69.         return $this;
  70.     }
  71.     public function isIsActive(): ?bool
  72.     {
  73.         return $this->isActive;
  74.     }
  75.     public function setIsActive(bool $isActive): self
  76.     {
  77.         $this->isActive $isActive;
  78.         return $this;
  79.     }
  80.     public function getCategory(): ?CategorySeance
  81.     {
  82.         return $this->category;
  83.     }
  84.     public function setCategory(?CategorySeance $category): self
  85.     {
  86.         $this->category $category;
  87.         return $this;
  88.     }
  89.     public function __toString()
  90.     {
  91.         return $this->category;
  92.     }
  93.     public function getImage(): ?string
  94.     {
  95.         return $this->image;
  96.     }
  97.     public function setImage(?string $image): self
  98.     {
  99.         $this->image $image;
  100.         return $this;
  101.     }
  102.     public function getSlug(): ?string
  103.     {
  104.         return $this->slug;
  105.     }
  106.     public function setSlug(string $slug): self
  107.     {
  108.         $this->slug $slug;
  109.         return $this;
  110.     }
  111.     public function getDuree(): ?string
  112.     {
  113.         return $this->duree;
  114.     }
  115.     public function setDuree(string $duree): self
  116.     {
  117.         $this->duree $duree;
  118.         return $this;
  119.     }
  120.     public function getPrix(): ?int
  121.     {
  122.         return $this->prix;
  123.     }
  124.     public function setPrix(?int $prix): self
  125.     {
  126.         $this->prix $prix;
  127.         return $this;
  128.     }
  129.     public function getNombrePhotoCouleur(): ?int
  130.     {
  131.         return $this->nombre_photo_couleur;
  132.     }
  133.     public function setNombrePhotoCouleur(?int $nombre_photo_couleur): self
  134.     {
  135.         $this->nombre_photo_couleur $nombre_photo_couleur;
  136.         return $this;
  137.     }
  138.     public function getNombrePhotoNb(): ?int
  139.     {
  140.         return $this->nombre_photo_nb;
  141.     }
  142.     public function setNombrePhotoNb(int $nombre_photo_nb): self
  143.     {
  144.         $this->nombre_photo_nb $nombre_photo_nb;
  145.         return $this;
  146.     }
  147.     public function getNombreTirage(): ?int
  148.     {
  149.         return $this->nombre_tirage;
  150.     }
  151.     public function setNombreTirage(?int $nombre_tirage): self
  152.     {
  153.         $this->nombre_tirage $nombre_tirage;
  154.         return $this;
  155.     }
  156. }