src/Entity/CallNumber.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CallNumberRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JMS\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassCallNumberRepository::class)]
  7. class CallNumber
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[Groups(['callNumber'])]
  14.     #[ORM\Column(length255)]
  15.     private ?string $number null;
  16.     #[Groups(['callNumber'])]
  17.     #[ORM\Column(length255)]
  18.     private ?string $details null;
  19.     #[ORM\ManyToOne(inversedBy'callNumbers')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?SchoolYear $year null;
  22.     #[ORM\ManyToOne(inversedBy'callçnumber')]
  23.     private ?School $school null;
  24.     #[Groups(['callNumber'])]
  25.     #[ORM\Column(length255)]
  26.     private ?string $name null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getNumber(): ?string
  32.     {
  33.         return $this->number;
  34.     }
  35.     public function setNumber(string $number): static
  36.     {
  37.         $this->number $number;
  38.         return $this;
  39.     }
  40.     public function getDetails(): ?string
  41.     {
  42.         return $this->details;
  43.     }
  44.     public function setDetails(string $details): static
  45.     {
  46.         $this->details $details;
  47.         return $this;
  48.     }
  49.     public function getYear(): ?SchoolYear
  50.     {
  51.         return $this->year;
  52.     }
  53.     public function setYear(?SchoolYear $year): static
  54.     {
  55.         $this->year $year;
  56.         return $this;
  57.     }
  58.     public function getSchool(): ?School
  59.     {
  60.         return $this->school;
  61.     }
  62.     public function setSchool(?School $school): static
  63.     {
  64.         $this->school $school;
  65.         return $this;
  66.     }
  67.     public function getName(): ?string
  68.     {
  69.         return $this->name;
  70.     }
  71.     public function setName(string $name): static
  72.     {
  73.         $this->name $name;
  74.         return $this;
  75.     }
  76.     
  77. }