From 20a3507ac9b04488b82203b89f6667a185d0b2a7 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Wed, 5 Mar 2014 00:26:12 +0100 Subject: [PATCH] Adding credit_id --- .gitignore | 1 + lib/Tmdb/Model/Person/CastMember.php | 25 +++++++++++++++++++++++++ lib/Tmdb/Model/Person/CrewMember.php | 25 +++++++++++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/.gitignore b/.gitignore index 1a5e850a..9f412858 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /phpunit /public_html /cache.properties +/tmdb.log diff --git a/lib/Tmdb/Model/Person/CastMember.php b/lib/Tmdb/Model/Person/CastMember.php index 129bbdd8..adca6dfe 100644 --- a/lib/Tmdb/Model/Person/CastMember.php +++ b/lib/Tmdb/Model/Person/CastMember.php @@ -35,8 +35,14 @@ class CastMember extends AbstractMember implements PersonInterface */ private $castId; + /** + * @var mixed + */ + private $creditId; + public static $properties = array( 'id', + 'credit_id', 'cast_id', 'name', 'character', @@ -100,4 +106,23 @@ public function getCastId() { return $this->castId; } + + /** + * @param mixed $creditId + * @return $this + */ + public function setCreditId($creditId) + { + $this->creditId = $creditId; + + return $this; + } + + /** + * @return mixed + */ + public function getCreditId() + { + return $this->creditId; + } } diff --git a/lib/Tmdb/Model/Person/CrewMember.php b/lib/Tmdb/Model/Person/CrewMember.php index bf53811b..9f5277fb 100644 --- a/lib/Tmdb/Model/Person/CrewMember.php +++ b/lib/Tmdb/Model/Person/CrewMember.php @@ -30,8 +30,14 @@ class CrewMember extends AbstractMember implements PersonInterface */ private $job; + /** + * @var mixed + */ + private $creditId; + public static $properties = array( 'id', + 'credit_id', 'name', 'department', 'job', @@ -75,4 +81,23 @@ public function getJob() { return $this->job; } + + /** + * @param mixed $creditId + * @return $this + */ + public function setCreditId($creditId) + { + $this->creditId = $creditId; + + return $this; + } + + /** + * @return mixed + */ + public function getCreditId() + { + return $this->creditId; + } }