thesportsdb-client

Equipment extends ApiRecord
in package

Read onlyYes
FinalYes

A team kit (`lookupequipment.php`, `lookup/team_equipment`).

Table of Contents

Properties

$added  : DateTimeImmutable|null
`date`: when it was added (zone not stated) (zone not stated)
$id  : int|null
`idEquipment`
$image  : string|null
`strEquipment`: the image
$raw  : array<string|int, mixed>
$season  : string|null
`strSeason`
$teamId  : int|null
`idTeam`
$type  : string|null
`strType`, e.g. `1st`, `2nd`, `GK`
$uploadedBy  : string|null
`strUsername`: who uploaded it

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

$added

`date`: when it was added (zone not stated) (zone not stated)

public DateTimeImmutable|null $added

$image

`strEquipment`: the image

public string|null $image

$season

`strSeason`

public string|null $season

$type

`strType`, e.g. `1st`, `2nd`, `GK`

public string|null $type

$uploadedBy

`strUsername`: who uploaded it

public string|null $uploadedBy

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