Skip to content

Commit

Permalink
Updated and removed deprecated objects (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolejska-daniel committed Feb 5, 2018
1 parent ee554d6 commit a16a6e2
Show file tree
Hide file tree
Showing 32 changed files with 87 additions and 560 deletions.
10 changes: 5 additions & 5 deletions src/RiotAPI/Objects/LeagueItemDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Used in:
* league (v3)
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getChallengerLeague
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getAllLeaguesForSummoner
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getLeagueById
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getMasterLeague
*
* @package RiotAPI\Objects
Expand All @@ -51,17 +51,17 @@ class LeagueItemDto extends ApiObject
/** @var int $losses */
public $losses;

/** @var string $playerOrTeamId */
public $playerOrTeamId;
/** @var bool $freshBlood */
public $freshBlood;

/** @var string $playerOrTeamName */
public $playerOrTeamName;

/** @var bool $inactive */
public $inactive;

/** @var bool $freshBlood */
public $freshBlood;
/** @var string $playerOrTeamId */
public $playerOrTeamId;

/** @var int $leaguePoints */
public $leaguePoints;
Expand Down
11 changes: 7 additions & 4 deletions src/RiotAPI/Objects/LeagueListDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Used in:
* league (v3)
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getChallengerLeague
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getAllLeaguesForSummoner
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getLeagueById
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getMasterLeague
*
* @iterable $entries
Expand All @@ -35,15 +35,18 @@
*/
class LeagueListDto extends ApiObjectIterable
{
/** @var string $leagueId */
public $leagueId;

/** @var string $tier */
public $tier;

/** @var LeagueItemDTO[] $entries */
public $entries;

/** @var string $queue */
public $queue;

/** @var string $name */
public $name;

/** @var LeagueItemDTO[] $entries */
public $entries;
}
15 changes: 9 additions & 6 deletions src/RiotAPI/Objects/LeaguePositionDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,23 @@ class LeaguePositionDto extends ApiObject
/** @var int $losses */
public $losses;

/** @var string $playerOrTeamId */
public $playerOrTeamId;
/** @var bool $freshBlood */
public $freshBlood;

/** @var string $leagueName */
public $leagueName;
/** @var string $leagueId */
public $leagueId;

/** @var string $playerOrTeamName */
public $playerOrTeamName;

/** @var bool $inactive */
public $inactive;

/** @var bool $freshBlood */
public $freshBlood;
/** @var string $playerOrTeamId */
public $playerOrTeamId;

/** @var string $leagueName */
public $leagueName;

/** @var string $tier */
public $tier;
Expand Down
25 changes: 5 additions & 20 deletions src/RiotAPI/Objects/MasteryDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,21 @@

/**
* Class MasteryDto
* This object contains mastery information.
*
* Used in:
* masteries (v3)
* @link https://developer.riotgames.com/api-methods/#masteries-v3/GET_getMasteryPagesBySummonerId
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @linkable $id (getStaticMastery)
* @linkable $id (getStaticMasteries)
*
* @package RiotAPI\Objects
*/
class MasteryDto extends ApiObjectLinkable
{
/**
* Mastery ID. For static information correlating to masteries, please refer
* to the LoL Static Data API.
*
* @var int $id
*/
public $id;

/**
* Mastery rank (i.e., the number of points put into this mastery).
*
* @var int $rank
*/
public $rank;

/** @var int $masteryId */
public $masteryId;

/** @var int $rank */
public $rank;
}
65 changes: 0 additions & 65 deletions src/RiotAPI/Objects/MasteryPageDto.php

This file was deleted.

51 changes: 0 additions & 51 deletions src/RiotAPI/Objects/MasteryPagesDto.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/MatchDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Used in:
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @package RiotAPI\Objects
Expand Down
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/MatchReferenceDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchlist
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getRecentMatchlist
*
* @linkable $champion (getStaticChampion)
* @linkable $champion (getStaticChampions)
*
* @package RiotAPI\Objects
*/
Expand Down
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/MiniSeriesDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Used in:
* league (v3)
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getChallengerLeague
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getAllLeaguesForSummoner
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getLeagueById
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getMasterLeague
* @link https://developer.riotgames.com/api-methods/#league-v3/GET_getAllLeaguePositionsForSummoner
*
Expand Down
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* spectator (v3)
* @link https://developer.riotgames.com/api-methods/#spectator-v3/GET_getFeaturedGames
*
* @linkable $championId (getStaticChampion)
* @linkable $championId (getStaticChampions)
*
* @package RiotAPI\Objects
*/
Expand Down
4 changes: 2 additions & 2 deletions src/RiotAPI/Objects/ParticipantDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
*
* Used in:
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @linkable $championId (getStaticChampion)
* @linkable $championId (getStaticChampions)
*
* @package RiotAPI\Objects
*/
Expand Down
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/ParticipantIdentityDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Used in:
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @package RiotAPI\Objects
Expand Down
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/ParticipantStatsDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Used in:
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @package RiotAPI\Objects
Expand Down
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/ParticipantTimelineDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Used in:
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @package RiotAPI\Objects
Expand Down
25 changes: 15 additions & 10 deletions src/RiotAPI/Objects/Mastery.php → src/RiotAPI/Objects/Perks.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,34 @@


/**
* Class Mastery
* Class Perks
*
* Used in:
* spectator (v3)
* @link https://developer.riotgames.com/api-methods/#spectator-v3/GET_getCurrentGameInfoBySummoner
*
* @linkable $masteryId (getStaticMastery)
*
* @package RiotAPI\Objects
*/
class Mastery extends ApiObjectLinkable
class Perks extends ApiObject
{
/**
* The ID of the mastery.
* Primary runes path.
*
* @var int $perkStyle
*/
public $perkStyle;

/**
* IDs of the perks/runes assigned.
*
* @var int $masteryId
* @var int[] $perkIds
*/
public $masteryId;
public $perkIds;

/**
* The number of points put into this mastery by the user.
* Secondary runes path.
*
* @var int $rank
* @var int $perkSubStyle
*/
public $rank;
public $perkSubStyle;
}
2 changes: 1 addition & 1 deletion src/RiotAPI/Objects/PlayerDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Used in:
* match (v3)
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatch
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchIdsByTournamentCode
* @link https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchByTournamentCode
*
* @package RiotAPI\Objects
Expand Down
Loading

0 comments on commit a16a6e2

Please sign in to comment.