thesportsdb-client

LineupEntry extends ApiRecord
in package

Read onlyYes
FinalYes

One player in an event's lineup (`lookuplineup.php`, `lookup/event_lineup`).

Table of Contents

Properties

$apiFootballId  : int|null
`idAPIfootball` (v2)
$country  : string|null
`strCountry` (v2)
$cutout  : string|null
`strCutout`
$event  : string|null
`strEvent` (v2)
$eventId  : int|null
`idEvent`
$formation  : string|null
`strFormation` (v2), e.g. `4-3-3`
$id  : int|null
`idLineup`
$isHome  : bool|null
`strHome`: true for the home side
$isSubstitute  : bool|null
`strSubstitute`: true for the bench
$player  : string|null
`strPlayer`
$playerId  : int|null
`idPlayer`
$position  : string|null
`strPosition`
$positionShort  : string|null
`strPositionShort` (v2), e.g. `G`, `D`
$raw  : array<string|int, mixed>
$render  : string|null
`strRender` (v1)
$season  : string|null
`strSeason` (v2)
$squadNumber  : int|null
`intSquadNumber`
$team  : string|null
`strTeam`
$teamId  : int|null
`idTeam`
$thumb  : string|null
`strThumb` (v1)

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` (v2)

public int|null $apiFootballId

$country

`strCountry` (v2)

public string|null $country

$formation

`strFormation` (v2), e.g. `4-3-3`

public string|null $formation

$isHome

`strHome`: true for the home side

public bool|null $isHome

$isSubstitute

`strSubstitute`: true for the bench

public bool|null $isSubstitute

$position

`strPosition`

public string|null $position

$positionShort

`strPositionShort` (v2), e.g. `G`, `D`

public string|null $positionShort

$squadNumber

`intSquadNumber`

public int|null $squadNumber

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