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
$assist
`strAssist`
public
string|null
$assist
$assistId
`idAssist`
public
int|null
$assistId
$comment
`strComment`
public
string|null
$comment
$cutout
`strCutout`
public
string|null
$cutout
$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
$event
`strEvent`
public
string|null
$event
$eventId
`idEvent`
public
int|null
$eventId
$id
`idTimeline`
public
int|null
$id
$isHome
`strHome`
public
bool|null
$isHome
$minute
`intTime`: the minute
public
int|null
$minute
$period
`strPeriod`
public
string|null
$period
$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
$team
`strTeam`
public
string|null
$team
$teamId
`idTeam`
public
int|null
$teamId
$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
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