original_string: public function set_analysable(\core_analytics\analysable $analysable) {
          $this->analysable = $analysable;
          $this->ranges = $this->define_ranges();
          $this->validate_ranges();
      }
code: public function set_analysable(\core_analytics\analysable $analysable) {
          $this->analysable = $analysable;
          $this->ranges = $this->define_ranges();
          $this->validate_ranges();
      }
code_tokens: public function set_analysable ( \ core_analytics \ analysable $ analysable ) { $ this -> analysable = $ analysable ; $ this -> ranges = $ this -> define_ranges ( ) ; $ this -> validate_ranges ( ) ; }
docstring: Assigns the analysable and updates the time ranges according to the analysable start and end dates.
  
  @param \core_analytics\analysable $analysable
  @return void
docstring_tokens: Assigns the analysable and updates the time ranges according to the analysable start and end dates .