<?php
namespace App\Entity;
use App\Repository\CourtInfoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CourtInfoRepository::class)]
class CourtInfo
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer', nullable: true)]
private $nbOpen;
#[ORM\Column(type: 'integer', nullable: true)]
private $nbCovered;
#[ORM\Column(type: 'integer', nullable: true)]
private $nbSemiOpen;
#[ORM\ManyToOne(targetEntity: ClubInfo::class, inversedBy: 'courtInfos')]
private $clubInfo;
#[ORM\ManyToOne(targetEntity: Sport::class, inversedBy: 'courtInfos')]
private $sport;
public function getId(): ?int
{
return $this->id;
}
public function getNbOpen(): ?int
{
return $this->nbOpen;
}
public function setNbOpen(?int $nbOpen): self
{
$this->nbOpen = $nbOpen;
return $this;
}
public function getNbCovered(): ?int
{
return $this->nbCovered;
}
public function setNbCovered(?int $nbCovered): self
{
$this->nbCovered = $nbCovered;
return $this;
}
public function getNbSemiOpen(): ?int
{
return $this->nbSemiOpen;
}
public function setNbSemiOpen(?int $nbSemiOpen): self
{
$this->nbSemiOpen = $nbSemiOpen;
return $this;
}
public function getClubInfo(): ?ClubInfo
{
return $this->clubInfo;
}
public function setClubInfo(?ClubInfo $clubInfo): self
{
$this->clubInfo = $clubInfo;
return $this;
}
public function getSport(): ?Sport
{
return $this->sport;
}
public function setSport(?Sport $sport): self
{
$this->sport = $sport;
return $this;
}
}