\Vigas\StreamingPlatforms\ModelGame

Class Game extends Media.

Manages a streamed game

Summary

Methods
Properties
Constants
getId()
getGame()
getViewers()
__construct()
getBox()
setBox()
addViewers()
No public properties found
No constants found
No protected methods found
$id
$game
$viewers
$source
N/A
No private methods found
$box
N/A

Properties

$id

$id : integer

Type

integer — The media id

$game

$game : string

Type

string — The game name

$viewers

$viewers : integer

Type

integer — The number of viewers

$source

$source : string

Type

string — The media's streaming platform

$box

$box : string

Type

string — The game boxart's url

Methods

getId()

getId() : integer

Returns

integer —

Returns the media id

getGame()

getGame() : string

Returns

string —

Returns the game name

getViewers()

getViewers() : string

Returns

string —

Returns the number of viewers

__construct()

__construct(integer  $id, string  $game, integer  $viewers, string  $box, string  $source) 

Parameters

integer $id

The game id

string $game

The game name

integer $viewers

The number of viewers watching the game

string $box

The game boxart's url

string $source

The game's streaming platform

getBox()

getBox() : string

Returns

string —

The game boxart's url

setBox()

setBox(string  $box) 

Parameters

string $box

The game boxart's url to set

addViewers()

addViewers(integer  $viewers) 

Parameters

integer $viewers

Adds a number of viewers to the game