* @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ namespace Tmdb\Repository; use Tmdb\Factory\CertificationFactory; /** * Class CertificationRepository * @package Tmdb\Repository * @see http://docs.themoviedb.apiary.io/#certifications */ class CertificationRepository extends AbstractRepository { /** * Get the list of supported certifications for movies. * * These can be used in conjunction with the certification_country * and certification.lte parameters when using discover. * * @param $parameters * @param $headers * @return null|\Tmdb\Model\AbstractModel */ public function getMovieList(array $parameters = array(), array $headers = array()) { $data = $this->getApi()->getMovieList($this->parseQueryParameters($parameters), $headers); return $this->getFactory()->createCollection($data); } /** * Return the Collection API Class * * @return \Tmdb\Api\Certifications */ public function getApi() { return $this->getClient()->getCertificationsApi(); } /** * @return CertificationFactory */ public function getFactory() { return new CertificationFactory(); } }