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:
<?php
/**
* This class handles the data you can get from a MovieJob
*
* @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 MovieJob {
//------------------------------------------------------------------------------
// Class Variables
//------------------------------------------------------------------------------
private $_data;
/**
* Construct Class
*
* @param array $data An array with the data of a Movie job
*/
public function __construct($data, $ipPerson) {
$this->_data = $data;
$this->_data['person_id'] = $ipPerson;
}
//------------------------------------------------------------------------------
// Get Variables
//------------------------------------------------------------------------------
/**
* Get the Movie's title
*
* @return string
*/
public function getMovieTitle() {
return $this->_data['title'];
}
/**
* Get the Movie's id
*
* @return int
*/
public function getMovieID() {
return $this->_data['id'];
}
/**
* Get the Movie's original title
*
* @return string
*/
public function getMovieOriginalTitle() {
return $this->_data['original_title'];
}
/**
* Get the Movie's release date
*
* @return string
*/
public function getMovieReleaseDate() {
return $this->_data['release_date'];
}
/**
* Get the Movie's poster
*
* @return string
*/
public function getPoster() {
return $this->_data['poster_path'];
}
/**
* Get the name of the job
*
* @return string
*/
public function getMovieJob() {
return $this->_data['job'];
}
/**
* Get the job department
*
* @return string
*/
public function getMovieDepartment() {
return $this->_data['department'];
}
/**
* Get the Movie's overview
*
* @return string
*/
public function getMovieOverview() {
return $this->_data['overview'];
}
//------------------------------------------------------------------------------
// Export
//------------------------------------------------------------------------------
/**
* Get the JSON representation of the Movie job
*
* @return string
*/
public function getJSON() {
return json_encode($this->_data, JSON_PRETTY_PRINT);
}
}
?>