FormerTeam
extends ApiRecord
in package
Read onlyYes
FinalYes
A team a player used to play for (`lookupformerteams.php`, `lookup/player_teams`).
Table of Contents
Properties
- $appearances : int|null
- `intAppearances`
- $badge : string|null
- `strBadge`
- $departed : string|null
- `strDeparted`: usually a year, as text
- $goals : int|null
- `intGoals`
- $id : int|null
- `id`
- $joined : string|null
- `strJoined`: usually a year, as text
- $moveType : string|null
- `strMoveType`, e.g. `Permanent`, `Loan`
- $player : string|null
- `strPlayer`
- $playerId : int|null
- `idPlayer`
- $raw : array<string|int, mixed>
- $sport : string|null
- `strSport`
- $team : string|null
- `strFormerTeam`
- $teamId : int|null
- `idFormerTeam`: the team's `idTeam`
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
$appearances
`intAppearances`
public
int|null
$appearances
$badge
`strBadge`
public
string|null
$badge
$departed
`strDeparted`: usually a year, as text
public
string|null
$departed
$goals
`intGoals`
public
int|null
$goals
$id
`id`
public
int|null
$id
$joined
`strJoined`: usually a year, as text
public
string|null
$joined
$moveType
`strMoveType`, e.g. `Permanent`, `Loan`
public
string|null
$moveType
$player
`strPlayer`
public
string|null
$player
$playerId
`idPlayer`
public
int|null
$playerId
$raw
public
array<string|int, mixed>
$raw
$sport
`strSport`
public
string|null
$sport
$team
`strFormerTeam`
public
string|null
$team
$teamId
`idFormerTeam`: the team's `idTeam`
public
int|null
$teamId
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