original_string: public static function fromNativeDateTime(\DateTime $date)
      {
          $year  = \intval($date->format('Y'));
          $month = Month::fromNativeDateTime($date);
          $day   = \intval($date->format('d'));
  
          return new static(new Year($year), $month, new MonthDay($day));
      }
code: public static function fromNativeDateTime(\DateTime $date)
      {
          $year  = \intval($date->format('Y'));
          $month = Month::fromNativeDateTime($date);
          $day   = \intval($date->format('d'));
  
          return new static(new Year($year), $month, new MonthDay($day));
      }
code_tokens: public static function fromNativeDateTime ( \ DateTime $ date ) { $ year = \ intval ( $ date -> format ( 'Y' ) ) ; $ month = Month :: fromNativeDateTime ( $ date ) ; $ day = \ intval ( $ date -> format ( 'd' ) ) ; return new static ( new Year ( $ year ) , $ month , new MonthDay ( $ day ) ) ; }
docstring: Returns a new Date from a native PHP \DateTime
  
  @param  \DateTime $date
  @return Date
docstring_tokens: Returns a new Date from a native PHP \ DateTime