src/MalScraper/Model/Top/TopCharacterModel.php
private function getEachRole($a)
    {
        $r = [];
        $link = $a->find('a', 0);
        $id = explode('/', $link->href);
        $r['id'] = $id[4];
        $r['title'] = $link->plaintext;

        return $r;
    }
private function getEachRole($a)
    {
        $r = [];
        $link = $a->find('a', 0);
        $id = explode('/', $link->href);
        $r['id'] = $id[4];
        $r['title'] = $link->plaintext;

        return $r;
    }
private function getEachRole ( $ a ) { $ r = [ ] ; $ link = $ a -> find ( 'a' , 0 ) ; $ id = explode ( '/' , $ link -> href ) ; $ r [ 'id' ] = $ id [ 4 ] ; $ r [ 'title' ] = $ link -> plaintext ; return $ r ; }
Get each role.

@param \simplehtmldom_1_5\simple_html_dom $a

@return array
Get each role .