Methods |
public
|
__construct(array $data, int $idTVShow = 0)
Construct Class
Parameters
$data |
An array with the data of a Episode
|
$idTVShow |
The TVShow's id
|
|
#
|
public
|
getID(): int
Get the Episode's id
|
#
|
public
|
getName(): string
Get the Episode's name
|
#
|
public
|
getTVShowID(): int
Get the TVShow id
|
#
|
public
|
getSeasonNumber(): int
Get the Season's number
|
#
|
public
|
getEpisodeNumber(): int
Get the Episode's number
|
#
|
public
|
getOverview(): string
Get the Episode's overview
Get the Episode's overview
|
#
|
public
|
getStill(): string
Get the Episode's still
|
#
|
public
|
getAirDate(): string
Get the Episode's AirDate
Get the Episode's AirDate
|
#
|
public
|
getVoteAverage(): int
Get the Episode's vote average
Get the Episode's vote average
|
#
|
public
|
getVoteCount(): int
Get the Episode's vote count
Get the Episode's vote count
|
#
|
public
|
get(string $item = ''): array|mixed|null
Get Generic.
Get a item of the array, you should not get used to use this, better use specific get's.
Get Generic.
Get a item of the array, you should not get used to use this, better use specific get's.
Parameters
$item |
The item of the $data array you want
|
Returns
Returns the entire data array, a specific item, or null if the item does not exist.
|
#
|
public
|
getJSON(): string
Get the JSON representation of the Episode
Get the JSON representation of the Episode
|
#
|