src/MalScraper/Model/Additional/VideoModel.php
private function getPromotion()
    {
        $promotion = [];
        $promotion_area = $this->_parser->find('.promotional-video', 0);
        if ($promotion_area) {
            foreach ($promotion_area->find('.video-list-outer') as $v) {
                $temp = [];

                $link_area = $v->find('a', 0);
                $temp['title'] = $this->getPromotionTitle($link_area);
                $temp['link'] = $this->getPromotionLink($link_area);

                $promotion[] = $temp;
            }
        }

        return $promotion;
    }
private function getPromotion()
    {
        $promotion = [];
        $promotion_area = $this->_parser->find('.promotional-video', 0);
        if ($promotion_area) {
            foreach ($promotion_area->find('.video-list-outer') as $v) {
                $temp = [];

                $link_area = $v->find('a', 0);
                $temp['title'] = $this->getPromotionTitle($link_area);
                $temp['link'] = $this->getPromotionLink($link_area);

                $promotion[] = $temp;
            }
        }

        return $promotion;
    }
private function getPromotion ( ) { $ promotion = [ ] ; $ promotion_area = $ this -> _parser -> find ( '.promotional-video' , 0 ) ; if ( $ promotion_area ) { foreach ( $ promotion_area -> find ( '.video-list-outer' ) as $ v ) { $ temp = [ ] ; $ link_area = $ v -> find ( 'a' , 0 ) ; $ temp [ 'title' ] = $ this -> getPromotionTitle ( $ link_area ) ; $ temp [ 'link' ] = $ this -> getPromotionLink ( $ link_area ) ; $ promotion [ ] = $ temp ; } } return $ promotion ; }
Get anime promotion video.

@return array
Get anime promotion video .