1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00
ampache/modules/Tmdb/Model/Person/MovieCredit.php
Afterster d842ebbb00 Add art on Videos
Add videos support to Subsonic and UPnP APIs
Update Tmdb module
2014-07-06 20:46:46 +02:00

254 lines
4.1 KiB
PHP

<?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 <michael@wtfz.net>
* @copyright (c) 2013, Michael Roterman
* @version 0.0.1
*/
namespace Tmdb\Model\Person;
use Tmdb\Model\AbstractModel;
use Tmdb\Model\Image\PosterImage;
/**
* Class MovieCredit
* @package Tmdb\Model\Person
*/
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;
}
}