src/Entity/AbstractOptionReservation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbstractOptionReservationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\InheritanceType("SINGLE_TABLE")
  8.  * @ORM\DiscriminatorColumn(name="discr", type="string")
  9.  */
  10. class AbstractOptionReservation
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     protected $id;
  18.     /**
  19.      * @ORM\Column(type="text", nullable=true)
  20.      */
  21.     private $commentary;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getCommentary(): ?string
  27.     {
  28.         return $this->commentary;
  29.     }
  30.     public function setCommentary(?string $commentary): self
  31.     {
  32.         $this->commentary $commentary;
  33.         return $this;
  34.     }
  35. }