Milestone
extends ApiRecord
in package
Read onlyYes
FinalYes
A career milestone or award (`lookupmilestones.php`, `lookup/player_milestones`).
Table of Contents
Properties
- $date : DateTimeImmutable|null
- `dateMilestone` (a date, as midnight UTC)
- $id : int|null
- `id`
- $logo : string|null
- `strMilestoneLogo`
- $milestoneId : int|null
- `idMilestone`
- $name : string|null
- `strMilestone`
- $player : string|null
- `strPlayer`
- $playerId : int|null
- `idPlayer`
- $raw : array<string|int, mixed>
- $sport : string|null
- `strSport`
- $team : string|null
- `strTeam`
- $teamId : int|null
- `idTeam`
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
$date
`dateMilestone` (a date, as midnight UTC)
public
DateTimeImmutable|null
$date
$id
`id`
public
int|null
$id
$logo
`strMilestoneLogo`
public
string|null
$logo
$milestoneId
`idMilestone`
public
int|null
$milestoneId
$name
`strMilestone`
public
string|null
$name
$player
`strPlayer`
public
string|null
$player
$playerId
`idPlayer`
public
int|null
$playerId
$raw
public
array<string|int, mixed>
$raw
$sport
`strSport`
public
string|null
$sport
$team
`strTeam`
public
string|null
$team
$teamId
`idTeam`
public
int|null
$teamId
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