ApiBaseObject

This class is the base class for all data all the data you can get from a Movie

Known subclasses

Movie, TVShow
Methods Summary
public
# __construct( $data )
Construct Class @param array $data An array with the data of the ApiObject
public
# getID( )
Get the ApiObject id @return int
public
# getPoster( )
Get the ApiObject Poster @return string
public
# getVoteAverage( )
Get the ApiObjects vote average @return int
public
# getVoteCount( )
Get the ApiObjects vote count @return int
public
# getCast( )
Get the ApiObjects Cast
protected
# getCredits( string $key )
Get the Cast or the Crew of an ApiObject
public
# getGenres( )
Get the ApiObject's genres @return Genre[]
public
# getCrew( )
Get the ApiObject crew
public
# get( $item = '' )
Get Generic.<br> Get a item of the array, you should not get used to use this, better use specific get's. @param string $item The item of the $data array you want
Constants Summary
public string MEDIA_TYPE_MOVIE
# 'movie'
public string CREDITS_TYPE_CAST
# 'cast'
public string CREDITS_TYPE_CREW
# 'crew'
public string MEDIA_TYPE_TV
# 'tv'
Properties Summary
protected $_data

# NULL