Honour
extends ApiRecord
in package
Read onlyYes
FinalYes
A trophy a player won (`lookuphonours.php`, `lookup/player_honours`).
Table of Contents
Properties
- $honourId : int|null
- `idHonour`: the honour itself, shared by everyone who won it
- $id : int|null
- `id`: this record
- $leagueId : int|null
- `idLeague`
- $logo : string|null
- `strHonourLogo`
- $name : string|null
- `strHonour`, e.g. `Copa Libertadores`
- $player : string|null
- `strPlayer`
- $playerId : int|null
- `idPlayer`
- $raw : array<string|int, mixed>
- $season : string|null
- `strSeason`
- $sport : string|null
- `strSport`
- $team : string|null
- `strTeam`
- $teamBadge : string|null
- `strTeamBadge`
- $teamId : int|null
- `idTeam`
- $trophy : string|null
- `strHonourTrophy`
Methods
- __construct() : mixed
- __toString() : string
- equals() : bool
- True when $other is the same kind of record, built from the same API fields.
- fmt() : string
Properties
$honourId
`idHonour`: the honour itself, shared by everyone who won it
public
int|null
$honourId
$id
`id`: this record
public
int|null
$id
$leagueId
`idLeague`
public
int|null
$leagueId
$logo
`strHonourLogo`
public
string|null
$logo
$name
`strHonour`, e.g. `Copa Libertadores`
public
string|null
$name
$player
`strPlayer`
public
string|null
$player
$playerId
`idPlayer`
public
int|null
$playerId
$raw
public
array<string|int, mixed>
$raw
$season
`strSeason`
public
string|null
$season
$sport
`strSport`
public
string|null
$sport
$team
`strTeam`
public
string|null
$team
$teamBadge
`strTeamBadge`
public
string|null
$teamBadge
$teamId
`idTeam`
public
int|null
$teamId
$trophy
`strHonourTrophy`
public
string|null
$trophy
Methods
__construct()
public
__construct(array<string, string|null> $raw) : mixed
Parameters
- $raw : array<string, string|null>
-
every field as the API sent it (blank strings as null); use it for fields not modelled yet: $team->raw['strKeywords']
__toString()
public
__toString() : string
Return values
stringequals()
True when $other is the same kind of record, built from the same API fields.
public
equals(self|null $other) : bool
Parameters
- $other : self|null
Return values
boolfmt()
protected
fmt(mixed $value) : string
Parameters
- $value : mixed