PNHereNowChannelData
in package
Table of Contents
Properties
- $channelName : string
- $occupancy : int
- $occupants : array<string|int, PNHereNowOccupantsData>
Methods
- __construct() : mixed
- PNHereNowChannelData constructor.
- __toString() : mixed
- fromJson() : PNHereNowChannelData
- getChannelName() : string
- getOccupancy() : int
- getOccupants() : array<string|int, PNHereNowOccupantsData>
Properties
$channelName
protected
string
$channelName
$occupancy
protected
int
$occupancy
$occupants
protected
array<string|int, PNHereNowOccupantsData>
$occupants
Methods
__construct()
PNHereNowChannelData constructor.
public
__construct(string $channelName, int $occupancy, array<string|int, PNHereNowOccupantsData> $occupants) : mixed
Parameters
- $channelName : string
- $occupancy : int
- $occupants : array<string|int, PNHereNowOccupantsData>
__toString()
public
__toString() : mixed
fromJson()
public
static fromJson(string $name, array<string|int, mixed> $json) : PNHereNowChannelData
Parameters
- $name : string
- $json : array<string|int, mixed>
Return values
PNHereNowChannelDatagetChannelName()
public
getChannelName() : string
Return values
stringgetOccupancy()
public
getOccupancy() : int
Return values
intgetOccupants()
public
getOccupants() : array<string|int, PNHereNowOccupantsData>