Fix
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good Details

This commit is contained in:
Daniel Guzman 2024-07-25 01:51:19 +02:00
parent 327acd3c13
commit b3ae18d6d3
1 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,6 @@ use DMD\LaLigaApi\Entity\League;
class LeagueDto
{
public int $id;
public string $name;
public string $city;
@ -40,7 +39,7 @@ class LeagueDto
'description' => $this->description ?? null,
'matchesBetweenTeams' => $this->matchesBetweenTeams ?? [],
'blockedMatchDates' => $this->blockedMatchDates ?? [],
'active' => $this->active ?? null,
'active' => $this->active,
'isPublic' => $this->isPublic ?? null,
'seasonIdList' => $seasonIdList,
'presidentId' => $this->presidentId ?? null,
@ -134,6 +133,10 @@ class LeagueDto
{
$this->logo = $leagueObj->getLogo();
}
if ($leagueObj->isActive() !== null)
{
$this->active = $leagueObj->isActive();
}
if ($leagueObj->getMatchesBetweenTeams() !== null)
{
$this->matchesBetweenTeams = $leagueObj->getMatchesBetweenTeams();