src/Entity/Agenda.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AgendaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClass: AgendaRepository::class)]
  7. class Agenda
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     #[Groups(["agenda:read"])]
  13.     private ?int $id = null;
  14.     #[ORM\Column(length: 255)]
  15.     #[Groups(["agenda:read"])]
  16.     private ?string $title = null;
  17.     #[ORM\Column(nullable: true)]
  18.     #[Groups(["agenda:read"])]
  19.     private ?int $minute = null;
  20.     #[ORM\ManyToOne(inversedBy: 'agendas')]
  21.     #[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
  22.     private ?Meeting $meeting = null;
  23.  
  24.     public function __construct()
  25.     {
  26.     }
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getTitle(): ?string
  32.     {
  33.         return $this->title;
  34.     }
  35.     public function setTitle(string $title): self
  36.     {
  37.         $this->title = $title;
  38.         return $this;
  39.     }
  40.     public function getMinute(): ?int
  41.     {
  42.         return $this->minute;
  43.     }
  44.     public function setMinute(?int $minute): self
  45.     {
  46.         $this->minute = $minute;
  47.         return $this;
  48.     }
  49.     public function getMeeting(): ?Meeting
  50.     {
  51.         return $this->meeting;
  52.     }
  53.     public function setMeeting(?Meeting $meeting): self
  54.     {
  55.         $this->meeting = $meeting;
  56.         return $this;
  57.     }
  58. }