src/MalScraper/Model/General/ProducerModel.php
private function getAnimeProducer($producer_area)
    {
        $producer = [];
        $producer_area = $producer_area->find('span[class=producer]', 0);
        foreach ($producer_area->find('a') as $each_producer) {
            $temp_prod = [];

            $temp_prod['id'] = $this->getAnimeProducerId($each_producer);
            $temp_prod['name'] = $this->getAnimeProducerName($each_producer);

            $producer[] = $temp_prod;
        }

        return $producer;
    }
private function getAnimeProducer($producer_area)
    {
        $producer = [];
        $producer_area = $producer_area->find('span[class=producer]', 0);
        foreach ($producer_area->find('a') as $each_producer) {
            $temp_prod = [];

            $temp_prod['id'] = $this->getAnimeProducerId($each_producer);
            $temp_prod['name'] = $this->getAnimeProducerName($each_producer);

            $producer[] = $temp_prod;
        }

        return $producer;
    }
private function getAnimeProducer ( $ producer_area ) { $ producer = [ ] ; $ producer_area = $ producer_area -> find ( 'span[class=producer]' , 0 ) ; foreach ( $ producer_area -> find ( 'a' ) as $ each_producer ) { $ temp_prod = [ ] ; $ temp_prod [ 'id' ] = $ this -> getAnimeProducerId ( $ each_producer ) ; $ temp_prod [ 'name' ] = $ this -> getAnimeProducerName ( $ each_producer ) ; $ producer [ ] = $ temp_prod ; } return $ producer ; }
Get producer name.

@param \simplehtmldom_1_5\simple_html_dom $producer_area

@return array
Get producer name .