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