This class handles all the data you can get from the api Configuration
Methods | ||
---|---|---|
public
|
__construct(array $data)
|
# |
public
|
getID(): int
|
# |
public
|
getPoster(): string
|
# |
public
|
getVoteAverage(): int
|
# |
public
|
getVoteCount(): int
|
# |
public
|
getCast(): array
|
# |
protected
|
getCredits(string $key): array
|
# |
public
|
getCrew(): array
|
# |
public
|
get(string $item = ''): array|mixed|null
|
# |
Constants | ||
---|---|---|
public
|
MEDIA_TYPE_MOVIE = 'movie'
|
# |
public
|
CREDITS_TYPE_CAST = 'cast'
|
# |
public
|
CREDITS_TYPE_CREW = 'crew'
|
# |
public
|
MEDIA_TYPE_TV = 'tv'
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$_data
|
# |