thesportsdb-client

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

$name

`strStat`, e.g. `Shots on Goal`, `Ball Possession`

public string|null $name

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