From 762ae9fc43191b13295c485ff252164ffb884077 Mon Sep 17 00:00:00 2001 From: Michael Grinspan Date: Fri, 20 Sep 2024 19:06:59 -0400 Subject: [PATCH] Remove `name` from SummonerDto `name` is no longer included in the response for any summoner requests: https://developer.riotgames.com/apis#summoner-v4/GET_getByPUUID --- src/Riot/DTO/SummonerDTO.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Riot/DTO/SummonerDTO.php b/src/Riot/DTO/SummonerDTO.php index 6087733..fbc580f 100644 --- a/src/Riot/DTO/SummonerDTO.php +++ b/src/Riot/DTO/SummonerDTO.php @@ -12,8 +12,6 @@ final class SummonerDTO implements DTOInterface private int $revisionDate; - private string $name; - private string $id; private string $puuid; @@ -24,7 +22,6 @@ public function __construct( string $accountId, int $profileIconId, int $revisionDate, - string $name, string $id, string $puuid, int $summonerLevel @@ -32,7 +29,6 @@ public function __construct( $this->accountId = $accountId; $this->profileIconId = $profileIconId; $this->revisionDate = $revisionDate; - $this->name = $name; $this->id = $id; $this->puuid = $puuid; $this->summonerLevel = $summonerLevel; @@ -53,11 +49,6 @@ public function getRevisionDate(): int return $this->revisionDate; } - public function getName(): string - { - return $this->name; - } - public function getId(): string { return $this->id; @@ -82,7 +73,6 @@ public static function createFromArray(array $data): SummonerDTO $data['accountId'], $data['profileIconId'], $data['revisionDate'], - $data['name'], $data['id'], $data['puuid'], $data['summonerLevel'],