1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132:
<?php
/**
* This class handles the data you can get from a TVShow job
*
* @package TMDB-V3-PHP-API
* @author Alvaro Octal | <a href="https://twitter.com/Alvaro_Octal">Twitter</a>
* @author Kostas Stathakos | <a href="https://e-leven.net">e-leven.net</a>
* @version 0.1
* @date 01/11/2017
* @link https://github.com/pixelead0/tmdb_v3-PHP-API-
* @copyright Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php)
*/
class TVShowJob {
//------------------------------------------------------------------------------
// Class Variables
//------------------------------------------------------------------------------
private $_data;
/**
* Construct Class
*
* @param array $data An array with the data of a TVShow job
*/
public function __construct($data, $ipPerson) {
$this->_data = $data;
$this->_data['person_id'] = $ipPerson;
}
//------------------------------------------------------------------------------
// Get Variables
//------------------------------------------------------------------------------
/**
* Get the TVShow's title
*
* @return string
*/
public function getTVShowName() {
return $this->_data['name'];
}
/**
* Get the TVShow's id
*
* @return int
*/
public function getTVShowID() {
return $this->_data['id'];
}
/**
* Get the TVShow's original title
*
* @return string
*/
public function getTVShowOriginalTitle() {
return $this->_data['original_name'];
}
/**
* Get the TVShow's release date
*
* @return string
*/
public function getTVShowFirstAirDate() {
return $this->_data['first_air_date'];
}
/**
* Get the TVShow's poster
*
* @return string
*/
public function getPoster() {
return $this->_data['backdrop_path'];
}
/**
* Get the name of the job
*
* @return string
*/
public function getTVShowJob() {
return $this->_data['job'];
}
/**
* Get the job department
*
* @return string
*/
public function getTVShowDepartment() {
return $this->_data['department'];
}
/**
* Get the TVShow's overview
*
* @return string
*/
public function getTVShowOverview() {
return $this->_data['overview'];
}
/**
* Get the TVShow's episode count
*
* @return string
*/
public function getTVShowEpisodeCount() {
return $this->_data['episode_count'];
}
//------------------------------------------------------------------------------
// Export
//------------------------------------------------------------------------------
/**
* Get the JSON representation of the TVShow job
*
* @return string
*/
public function getJSON() {
return json_encode($this->_data, JSON_PRETTY_PRINT);
}
}
?>