thesportsdb-client

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

`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

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
string

equals()

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
bool

fmt()

protected fmt(mixed $value) : string
Parameters
$value : mixed
Return values
string
On this page

Search results