original_string: protected function setDate(Date $date)
      {
          $this->date = $date;
          $this->strDate = $date->toString();
      }
code: protected function setDate(Date $date)
      {
          $this->date = $date;
          $this->strDate = $date->toString();
      }
code_tokens: protected function setDate ( Date $ date ) { $ this -> date = $ date ; $ this -> strDate = $ date -> toString ( ) ; }
docstring: Sets the date to be used by all other methods in the controller.
  If the date has to be modified, this method should be called just after
  construction.
  
  @param Date $date The new Date.
  @return void
  @api
docstring_tokens: Sets the date to be used by all other methods in the controller . If the date has to be modified this method should be called just after construction .