The Producer class represents a MyAnimeList producer entity and includes paginated results. It provides access to producer details such as their MAL ID, name, titles, images, establishment date, favorites count, biography, and external links. Because it implements Results and Pagination, it can also be used to iterate through collections of producers and check for subsequent pages.
Note: The getName() method is deprecated; use getTitles() to access the full list of titles instead.
use Jikan\Model\Producer\Producer;
use Jikan\Parser\Producer\ProducerParser;
// Assuming $parser is an instance of ProducerParser provided by the library
$producer = Producer::fromParser($parser);
echo $producer->getMalId();
echo $producer->getAbout();
if ($producer->hasNextPage()) {
echo "More results available.";
}
foreach ($producer->getResults() as $result) {
// Process individual producer results
}