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