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

            $temp_prod['id'] = $this->getProducerId($each_producer);
            $temp_prod['name'] = $this->getProducerName($each_producer);

            $producer[] = $temp_prod;
        }

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

            $temp_prod['id'] = $this->getProducerId($each_producer);
            $temp_prod['name'] = $this->getProducerName($each_producer);

            $producer[] = $temp_prod;
        }

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

@param \simplehtmldom_1_5\simple_html_dom $producer_area

@return array
Get producer .