original_string: public function withHour(int $hour): DateTime
      {
          return new static(
              $this->date(),
              Time::create($hour, $this->minute(), $this->second()),
              $this->timezone()
          );
      }
code: public function withHour(int $hour): DateTime
      {
          return new static(
              $this->date(),
              Time::create($hour, $this->minute(), $this->second()),
              $this->timezone()
          );
      }
code_tokens: public function withHour ( int $ hour ) : DateTime { return new static ( $ this -> date ( ) , Time :: create ( $ hour , $ this -> minute ( ) , $ this -> second ( ) ) , $ this -> timezone ( ) ) ; }
docstring: Creates instance with a given hour
  
  @param int $hour The hour
  
  @return DateTime
  
  @throws DomainException When the date/time is not valid
docstring_tokens: Creates instance with a given hour