thesportsdb-client

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

$departed

`strDeparted`: usually a year, as text

public string|null $departed

$joined

`strJoined`: usually a year, as text

public string|null $joined

$moveType

`strMoveType`, e.g. `Permanent`, `Loan`

public string|null $moveType

$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
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