src/Entity/CourtInfo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CourtInfoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCourtInfoRepository::class)]
  6. class CourtInfo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'integer'nullabletrue)]
  13.     private $nbOpen;
  14.     #[ORM\Column(type'integer'nullabletrue)]
  15.     private $nbCovered;
  16.     #[ORM\Column(type'integer'nullabletrue)]
  17.     private $nbSemiOpen;
  18.     #[ORM\ManyToOne(targetEntityClubInfo::class, inversedBy'courtInfos')]
  19.     private $clubInfo;
  20.     #[ORM\ManyToOne(targetEntitySport::class, inversedBy'courtInfos')]
  21.     private $sport;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getNbOpen(): ?int
  27.     {
  28.         return $this->nbOpen;
  29.     }
  30.     public function setNbOpen(?int $nbOpen): self
  31.     {
  32.         $this->nbOpen $nbOpen;
  33.         return $this;
  34.     }
  35.     public function getNbCovered(): ?int
  36.     {
  37.         return $this->nbCovered;
  38.     }
  39.     public function setNbCovered(?int $nbCovered): self
  40.     {
  41.         $this->nbCovered $nbCovered;
  42.         return $this;
  43.     }
  44.     public function getNbSemiOpen(): ?int
  45.     {
  46.         return $this->nbSemiOpen;
  47.     }
  48.     public function setNbSemiOpen(?int $nbSemiOpen): self
  49.     {
  50.         $this->nbSemiOpen $nbSemiOpen;
  51.         return $this;
  52.     }
  53.     public function getClubInfo(): ?ClubInfo
  54.     {
  55.         return $this->clubInfo;
  56.     }
  57.     public function setClubInfo(?ClubInfo $clubInfo): self
  58.     {
  59.         $this->clubInfo $clubInfo;
  60.         return $this;
  61.     }
  62.     public function getSport(): ?Sport
  63.     {
  64.         return $this->sport;
  65.     }
  66.     public function setSport(?Sport $sport): self
  67.     {
  68.         $this->sport $sport;
  69.         return $this;
  70.     }
  71. }