mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 18:29:40 +02:00
279 lines
4.4 KiB
PHP
279 lines
4.4 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;
|
|
|
|
use Tmdb\Model\Common\GenericCollection;
|
|
use Tmdb\Model\Image\PosterImage;
|
|
|
|
/**
|
|
* Class Lists
|
|
* @package Tmdb\Model
|
|
*/
|
|
class Lists extends AbstractModel
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $createdBy;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $description;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $favoriteCount;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var GenericCollection
|
|
*/
|
|
private $items;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $itemCount;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $iso6391;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $posterPath;
|
|
|
|
/**
|
|
* @var PosterImage
|
|
*/
|
|
private $posterImage;
|
|
|
|
public static $properties = array(
|
|
'created_by',
|
|
'description',
|
|
'favorite_count',
|
|
'id',
|
|
'item_count',
|
|
'iso_639_1',
|
|
'name',
|
|
'poster_path'
|
|
);
|
|
|
|
public function __construct()
|
|
{
|
|
$this->items = new GenericCollection();
|
|
}
|
|
|
|
/**
|
|
* @param string $createdBy
|
|
* @return $this
|
|
*/
|
|
public function setCreatedBy($createdBy)
|
|
{
|
|
$this->createdBy = $createdBy;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCreatedBy()
|
|
{
|
|
return $this->createdBy;
|
|
}
|
|
|
|
/**
|
|
* @param string $description
|
|
* @return $this
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @param int $favoriteCount
|
|
* @return $this
|
|
*/
|
|
public function setFavoriteCount($favoriteCount)
|
|
{
|
|
$this->favoriteCount = $favoriteCount;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getFavoriteCount()
|
|
{
|
|
return $this->favoriteCount;
|
|
}
|
|
|
|
/**
|
|
* @param string $id
|
|
* @return $this
|
|
*/
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @param string $iso6391
|
|
* @return $this
|
|
*/
|
|
public function setIso6391($iso6391)
|
|
{
|
|
$this->iso6391 = $iso6391;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getIso6391()
|
|
{
|
|
return $this->iso6391;
|
|
}
|
|
|
|
/**
|
|
* @param int $itemCount
|
|
* @return $this
|
|
*/
|
|
public function setItemCount($itemCount)
|
|
{
|
|
$this->itemCount = $itemCount;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getItemCount()
|
|
{
|
|
return $this->itemCount;
|
|
}
|
|
|
|
/**
|
|
* @param \Tmdb\Model\Common\GenericCollection $items
|
|
* @return $this
|
|
*/
|
|
public function setItems($items)
|
|
{
|
|
$this->items = $items;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return \Tmdb\Model\Common\GenericCollection
|
|
*/
|
|
public function getItems()
|
|
{
|
|
return $this->items;
|
|
}
|
|
|
|
/**
|
|
* @param string $name
|
|
* @return $this
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @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;
|
|
}
|
|
}
|