thesportsdb-client

Contract extends ApiRecord
in package

Read onlyYes
FinalYes

A player's contract (`lookupcontracts.php`, `lookup/player_contracts`).

Table of Contents

Properties

$badge  : string|null
`strBadge`
$id  : int|null
`id`
$player  : string|null
`strPlayer`
$playerId  : int|null
`idPlayer`
$raw  : array<string|int, mixed>
$sport  : string|null
`strSport`
$team  : string|null
`strTeam`
$teamId  : int|null
`idTeam`
$wage  : string|null
`strWage`, as text
$yearEnd  : int|null
`strYearEnd`
$yearStart  : int|null
`strYearStart`

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

$badge

`strBadge`

public string|null $badge

$player

`strPlayer`

public string|null $player

$playerId

`idPlayer`

public int|null $playerId

$sport

`strSport`

public string|null $sport

$team

`strTeam`

public string|null $team

$teamId

`idTeam`

public int|null $teamId

$wage

`strWage`, as text

public string|null $wage

$yearEnd

`strYearEnd`

public int|null $yearEnd

$yearStart

`strYearStart`

public int|null $yearStart

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