Add games per week to season object and preferred day of week for team object
This commit is contained in:
+15
-12
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user