public function set_areas(array $areas) {
        foreach ($areas as $area) {
            if ($area instanceof base && !key_exists($area->get_area_id(), $this->areas)) {
                $this->areas[$area->get_area_id()] = $area;
            }
        }
    }
public function set_areas(array $areas) {
        foreach ($areas as $area) {
            if ($area instanceof base && !key_exists($area->get_area_id(), $this->areas)) {
                $this->areas[$area->get_area_id()] = $area;
            }
        }
    }
public function set_areas ( array $ areas ) { foreach ( $ areas as $ area ) { if ( $ area instanceof base && ! key_exists ( $ area -> get_area_id ( ) , $ this -> areas ) ) { $ this -> areas [ $ area -> get_area_id ( ) ] = $ area ; } } }
Set list of search areas for this category,

@param \core_search\base[] $areas
Set list of search areas for this category