Add games per week to season object and preferred day of week for team object

This commit is contained in:
Daniel Guzman
2024-07-14 11:47:21 +02:00
parent c72fd1dfc9
commit 3e6e4ea6e5
390 changed files with 402 additions and 13853 deletions
+15 -12
View File
@@ -53,6 +53,9 @@ class Season
#[ORM\Column(nullable: true)]
private ?int $pointsPerLoss = null;
#[ORM\Column(nullable: true)]
private ?int $gamesPerWeek = null;
public function __construct()
{
$this->teams = new ArrayCollection();
@@ -102,18 +105,6 @@ class Season
return $this;
}
public function getDateEnd(): ?\DateTimeInterface
{
return $this->dateEnd;
}
public function setDateEnd(?\DateTimeInterface $dateEnd): static
{
$this->dateEnd = $dateEnd;
return $this;
}
public function isActive(): ?bool
{
return $this->active;
@@ -287,4 +278,16 @@ class Season
return $this;
}
public function getGamesPerWeek(): ?int
{
return $this->gamesPerWeek;
}
public function setGamesPerWeek(?int $gamesPerWeek): static
{
$this->gamesPerWeek = $gamesPerWeek;
return $this;
}
}