src/Crawler/SearchResultCrawler.php
public function getNbAds()
    {
        $nbAds = $this->node
            ->filter('a.tabsSwitch span.tabsSwitchNumbers')
            ->first();

        if ($nbAds->count()) {
            $nbAds = preg_replace('/\s+/', '', $nbAds->text());
            return (int) $nbAds;
        }

        return 0;
    }
public function getNbAds()
    {
        $nbAds = $this->node
            ->filter('a.tabsSwitch span.tabsSwitchNumbers')
            ->first();

        if ($nbAds->count()) {
            $nbAds = preg_replace('/\s+/', '', $nbAds->text());
            return (int) $nbAds;
        }

        return 0;
    }
public function getNbAds ( ) { $ nbAds = $ this -> node -> filter ( 'a.tabsSwitch span.tabsSwitchNumbers' ) -> first ( ) ; if ( $ nbAds -> count ( ) ) { $ nbAds = preg_replace ( '/\s+/' , '' , $ nbAds -> text ( ) ) ; return ( int ) $ nbAds ; } return 0 ; }
Return the total number of ads of the search

@return int
Return the total number of ads of the search