welcome back to dyb-tech

This commit is contained in:
Daniel Guzman
2024-05-18 02:28:01 +02:00
parent 9513cdba09
commit 9f30bc98c7
6149 changed files with 668407 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace DMD\LaLigaApi\Dto;
class SeasonDataDto
{
public int $id;
public int $teamId;
public int $points;
public int $seasonId;
public function fillFromArray(array $dataList): void
{
if (isset($dataList['id']))
{
$this->id = (int) $dataList['id'];
}
if (isset($dataList['teamId']))
{
$this->teamId = $dataList['teamId'];
}
if (isset($dataList['points']))
{
$this->points = $dataList['points'];
}
if (isset($dataList['seasonId']))
{
$this->seasonId = $dataList['seasonId'];
}
}
}