1<?php 2/** 3 * This file is part of the Tmdb PHP API created by Michael Roterman. 4 * 5 * For the full copyright and license information, please view the LICENSE 6 * file that was distributed with this source code. 7 * 8 * @package Tmdb 9 * @author Michael Roterman <michael@wtfz.net> 10 * @copyright (c) 2013, Michael Roterman 11 * @version 0.0.1 12 */ 13namespace Tmdb\Model\Collection; 14 15use Tmdb\Model\Collection\People\Cast; 16use Tmdb\Model\Collection\People\Crew; 17use Tmdb\Model\Collection\People\GuestStars; 18 19/** 20 * Class CreditsCollection 21 * @package Tmdb\Model\Collection 22 */ 23class CreditsCollection 24{ 25 /** 26 * @var Cast 27 */ 28 public $cast; 29 30 /** 31 * @var Crew 32 */ 33 private $crew; 34 35 36 private $guestStars; 37 38 /** 39 * Constructor 40 */ 41 public function __construct() 42 { 43 $this->cast = new Cast(); 44 $this->crew = new Crew(); 45 $this->guestStars = new GuestStars(); 46 } 47 48 /** 49 * @param Cast $cast 50 * @return $this 51 */ 52 public function setCast(Cast $cast) 53 { 54 $this->cast = $cast; 55 56 return $this; 57 } 58 59 /** 60 * @return Cast 61 */ 62 public function getCast() 63 { 64 return $this->cast; 65 } 66 67 /** 68 * @param Crew $crew 69 * @return $this 70 */ 71 public function setCrew(Crew $crew) 72 { 73 $this->crew = $crew; 74 75 return $this; 76 } 77 78 /** 79 * @return Crew 80 */ 81 public function getCrew() 82 { 83 return $this->crew; 84 } 85 86 /** 87 * @return GuestStars 88 */ 89 public function getGuestStars() 90 { 91 return $this->guestStars; 92 } 93 94 /** 95 * @param GuestStars $guestStars 96 */ 97 public function setGuestStars($guestStars) 98 { 99 $this->guestStars = $guestStars; 100 } 101} 102