src/Crawler/SearchResultCrawler.php
public function getAds()
    {
        $ads = array();

        $this->node->filter('[itemtype="http://schema.org/Offer"]')
            ->each(function ($node) use (&$ads) {
                $ad = (new SearchResultAdCrawler(
                    $node,
                    $node->filter('a')->attr('href')
                ))->getAll();

                $ads [$ad['id']] = $ad;
            });

        return $ads;
    }
public function getAds()
    {
        $ads = array();

        $this->node->filter('[itemtype="http://schema.org/Offer"]')
            ->each(function ($node) use (&$ads) {
                $ad = (new SearchResultAdCrawler(
                    $node,
                    $node->filter('a')->attr('href')
                ))->getAll();

                $ads [$ad['id']] = $ad;
            });

        return $ads;
    }
public function getAds ( ) { $ ads = array ( ) ; $ this -> node -> filter ( '[itemtype="http://schema.org/Offer"]' ) -> each ( function ( $ node ) use ( & $ ads ) { $ ad = ( new SearchResultAdCrawler ( $ node , $ node -> filter ( 'a' ) -> attr ( 'href' ) ) ) -> getAll ( ) ; $ ads [ $ ad [ 'id' ] ] = $ ad ; } ) ; return $ ads ; }
Get an array containing the ads of the current result page

@return array
Get an array containing the ads of the current result page