original_string: public function setBirthdate($date)
      {
          if ($date instanceof DateTime) {
              $date = $date->format('Y-m-d');
          }
  
          $this->data->birthDate = $date;
  
          return $this;
      }
code: public function setBirthdate($date)
      {
          if ($date instanceof DateTime) {
              $date = $date->format('Y-m-d');
          }
  
          $this->data->birthDate = $date;
  
          return $this;
      }
code_tokens: public function setBirthdate ( $ date ) { if ( $ date instanceof DateTime ) { $ date = $ date -> format ( 'Y-m-d' ) ; } $ this -> data -> birthDate = $ date ; return $ this ; }
docstring: Set customer birth date
  
  @param  string|DateTime  $date
  @return $this
docstring_tokens: Set customer birth date