forked from php-tmdb/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:wtfzdotnet/php-tmdb-api into dev…
…elop
- Loading branch information
Showing
4 changed files
with
272 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
<?php | ||
/** | ||
* This file is part of the Tmdb PHP API created by Michael Roterman. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package Tmdb | ||
* @author Michael Roterman <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Model\Person; | ||
|
||
use Tmdb\Model\AbstractModel; | ||
use Tmdb\Model\Image\PosterImage; | ||
|
||
class MovieCredit extends AbstractModel { | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
private $adult; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $character; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $creditId; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $originalTitle; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $posterPath; | ||
|
||
/** | ||
* @var \DateTime | ||
*/ | ||
private $releaseDate; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $title; | ||
|
||
/** | ||
* @var PosterImage | ||
*/ | ||
private $posterImage; | ||
|
||
public static $_properties = array( | ||
'adult', | ||
'character', | ||
'credit_id', | ||
'id', | ||
'original_title', | ||
'poster_path', | ||
'release_date', | ||
'title' | ||
); | ||
|
||
/** | ||
* @param boolean $adult | ||
* @return $this | ||
*/ | ||
public function setAdult($adult) | ||
{ | ||
$this->adult = $adult; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return boolean | ||
*/ | ||
public function getAdult() | ||
{ | ||
return $this->adult; | ||
} | ||
|
||
/** | ||
* @param string $character | ||
* @return $this | ||
*/ | ||
public function setCharacter($character) | ||
{ | ||
$this->character = $character; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCharacter() | ||
{ | ||
return $this->character; | ||
} | ||
|
||
/** | ||
* @param string $creditId | ||
* @return $this | ||
*/ | ||
public function setCreditId($creditId) | ||
{ | ||
$this->creditId = $creditId; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCreditId() | ||
{ | ||
return $this->creditId; | ||
} | ||
|
||
/** | ||
* @param int $id | ||
* @return $this | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param string $originalTitle | ||
* @return $this | ||
*/ | ||
public function setOriginalTitle($originalTitle) | ||
{ | ||
$this->originalTitle = $originalTitle; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getOriginalTitle() | ||
{ | ||
return $this->originalTitle; | ||
} | ||
|
||
/** | ||
* @param \Tmdb\Model\Image\PosterImage $posterImage | ||
* @return $this | ||
*/ | ||
public function setPosterImage($posterImage) | ||
{ | ||
$this->posterImage = $posterImage; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return \Tmdb\Model\Image\PosterImage | ||
*/ | ||
public function getPosterImage() | ||
{ | ||
return $this->posterImage; | ||
} | ||
|
||
/** | ||
* @param string $posterPath | ||
* @return $this | ||
*/ | ||
public function setPosterPath($posterPath) | ||
{ | ||
$this->posterPath = $posterPath; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getPosterPath() | ||
{ | ||
return $this->posterPath; | ||
} | ||
|
||
/** | ||
* @param \DateTime $releaseDate | ||
* @return $this | ||
*/ | ||
public function setReleaseDate($releaseDate) | ||
{ | ||
if (!$releaseDate instanceof \DateTime) { | ||
$releaseDate = new \DateTime($releaseDate); | ||
} | ||
|
||
$this->releaseDate = $releaseDate; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return \DateTime | ||
*/ | ||
public function getReleaseDate() | ||
{ | ||
return $this->releaseDate; | ||
} | ||
|
||
/** | ||
* @param string $title | ||
* @return $this | ||
*/ | ||
public function setTitle($title) | ||
{ | ||
$this->title = $title; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTitle() | ||
{ | ||
return $this->title; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters