public function set_analysable(\core_analytics\analysable $analysable) {
        $this->analysable = $analysable;
        $this->ranges = $this->define_ranges();
        $this->validate_ranges();
    }
public function set_analysable(\core_analytics\analysable $analysable) {
        $this->analysable = $analysable;
        $this->ranges = $this->define_ranges();
        $this->validate_ranges();
    }
public function set_analysable ( \ core_analytics \ analysable $ analysable ) { $ this -> analysable = $ analysable ; $ this -> ranges = $ this -> define_ranges ( ) ; $ this -> validate_ranges ( ) ; }
Assigns the analysable and updates the time ranges according to the analysable start and end dates.

@param \core_analytics\analysable $analysable
@return void
Assigns the analysable and updates the time ranges according to the analysable start and end dates .