Season
extends ApiRecord
in package
Read onlyYes
FinalYes
A season of a league (`search_all_seasons.php`, `list/seasons`).
Table of Contents
Properties
- $badge : string|null
- `strBadge` (v2, or v1 with `badge=1`)
- $description : string|null
- `strDescriptionEN` (v2, or v1 with `description=1`)
- $name : string
- `strSeason`, e.g. `2026-2027`
- $poster : string|null
- `strPoster` (v2, or v1 with `poster=1`)
- $raw : array<string|int, mixed>
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` (v2, or v1 with `badge=1`)
public
string|null
$badge
$description
`strDescriptionEN` (v2, or v1 with `description=1`)
public
string|null
$description
$name
`strSeason`, e.g. `2026-2027`
public
string
$name
$poster
`strPoster` (v2, or v1 with `poster=1`)
public
string|null
$poster
$raw
public
array<string|int, mixed>
$raw
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