thesportsdb-client

TimelineEntry extends ApiRecord
in package

Read onlyYes
FinalYes

A goal, card or substitution during an event (`lookuptimeline.php`, `lookup/event_timeline`).

Table of Contents

Properties

$apiFootballId  : int|null
`idAPIfootball`
$assist  : string|null
`strAssist`
$assistId  : int|null
`idAssist`
$comment  : string|null
`strComment`
$cutout  : string|null
`strCutout`
$date  : DateTimeImmutable|null
`dateEvent` (a date, as midnight UTC)
$detail  : string|null
`strTimelineDetail`, e.g. `Yellow Card`, `Normal Goal`, or the player coming on
$event  : string|null
`strEvent`
$eventId  : int|null
`idEvent`
$id  : int|null
`idTimeline`
$isHome  : bool|null
`strHome`
$minute  : int|null
`intTime`: the minute
$period  : string|null
`strPeriod`
$player  : string|null
`strPlayer`
$playerId  : int|null
`idPlayer`
$raw  : array<string|int, mixed>
$season  : string|null
`strSeason`
$team  : string|null
`strTeam`
$teamId  : int|null
`idTeam`
$type  : string|null
`strTimeline`: the kind of entry, e.g. `Goal`, `Card`, `subst`

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

$apiFootballId

`idAPIfootball`

public int|null $apiFootballId

$date

`dateEvent` (a date, as midnight UTC)

public DateTimeImmutable|null $date

$detail

`strTimelineDetail`, e.g. `Yellow Card`, `Normal Goal`, or the player coming on

public string|null $detail

$type

`strTimeline`: the kind of entry, e.g. `Goal`, `Card`, `subst`

public string|null $type

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