Venue
extends ApiRecord
in package
Read onlyYes
FinalYes
A stadium, arena or circuit.
Table of Contents
Properties
- $alternateName : string|null
- `strVenueAlternate`
- $architect : string|null
- `strArchitect`
- $capacity : int|null
- `intCapacity`
- $cost : string|null
- `strCost`, as text
- $country : string|null
- `strCountry`
- $creativeCommons : bool|null
- `strCreativeCommons`: see [Player.creativeCommons]
- $descriptions : array<string, string>
- $duplicateOf : int|null
- `idDupe`: set when this record duplicates another venue
- $fanart : array<int, string>
- $formedYear : int|null
- `intFormedYear`
- $id : int|null
- `idVenue`
- $isLocked : bool|null
- `strLocked`
- $location : string|null
- `strLocation`
- $logo : string|null
- `strLogo`
- $loved : int|null
- `intLoved`
- $map : string|null
- `strMap`: either `lat, lon` or an image URL
- $name : string|null
- `strVenue`
- $raw : array<string|int, mixed>
- $socials : Socials
- $sponsorName : string|null
- `strVenueSponsor`
- $sport : string|null
- `strSport`
- $thumb : string|null
- `strThumb`
- $timezone : string|null
- `strTimezone`, as text, e.g. `UTC +00:00 Greenwich Mean Time (GMT)`
Methods
- __construct() : mixed
- __toString() : string
- coordinates() : array{float, float}|null
- description() : string|null
- The English description.
- equals() : bool
- True when $other is the same kind of record, built from the same API fields.
- fmt() : string
Properties
$alternateName
`strVenueAlternate`
public
string|null
$alternateName
$architect
`strArchitect`
public
string|null
$architect
$capacity
`intCapacity`
public
int|null
$capacity
$cost
`strCost`, as text
public
string|null
$cost
$country
`strCountry`
public
string|null
$country
$creativeCommons
`strCreativeCommons`: see [Player.creativeCommons]
public
bool|null
$creativeCommons
$descriptions
public
array<string, string>
$descriptions
strDescriptionEN, ...
$duplicateOf
`idDupe`: set when this record duplicates another venue
public
int|null
$duplicateOf
$fanart
public
array<int, string>
$fanart
strFanart1..strFanart4
$formedYear
`intFormedYear`
public
int|null
$formedYear
$id
`idVenue`
public
int|null
$id
$isLocked
`strLocked`
public
bool|null
$isLocked
$location
`strLocation`
public
string|null
$location
$logo
`strLogo`
public
string|null
$logo
$loved
`intLoved`
public
int|null
$loved
$map
`strMap`: either `lat, lon` or an image URL
public
string|null
$map
$name
`strVenue`
public
string|null
$name
$raw
public
array<string|int, mixed>
$raw
$socials
public
Socials
$socials
$sponsorName
`strVenueSponsor`
public
string|null
$sponsorName
$sport
`strSport`
public
string|null
$sport
$thumb
`strThumb`
public
string|null
$thumb
$timezone
`strTimezone`, as text, e.g. `UTC +00:00 Greenwich Mean Time (GMT)`
public
string|null
$timezone
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
stringcoordinates()
public
coordinates() : array{float, float}|null
Return values
array{float, float}|null —map as [latitude, longitude], when it holds coordinates
description()
The English description.
public
description() : string|null
Return values
string|nullequals()
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