EventStat
extends ApiRecord
in package
Read onlyYes
FinalYes
One team statistic for an event, home vs away (`lookupeventstats.php`, `lookup/event_stats`).
Table of Contents
Properties
- $apiFootballId : int|null
- `idApiFootball` (note the different capitalisation in the API)
- $away : float|null
- `intAway`
- $event : string|null
- `strEvent`
- $eventId : int|null
- `idEvent`
- $home : float|null
- `intHome`
- $id : int|null
- `idStatistic`
- $name : string|null
- `strStat`, e.g. `Shots on Goal`, `Ball Possession`
- $raw : array<string|int, mixed>
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` (note the different capitalisation in the API)
public
int|null
$apiFootballId
$away
`intAway`
public
float|null
$away
$event
`strEvent`
public
string|null
$event
$eventId
`idEvent`
public
int|null
$eventId
$home
`intHome`
public
float|null
$home
$id
`idStatistic`
public
int|null
$id
$name
`strStat`, e.g. `Shots on Goal`, `Ball Possession`
public
string|null
$name
$raw
public
array<string|int, mixed>
$raw
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