original_string: public function setNextInvoiceDate($date)
      {
          $date = DateTime::createFromFormat('Y-m-d', $date);
  
          $this->next_invoice_date = new stdClass();
          $this->next_invoice_date->day = $date->format('d');
          $this->next_invoice_date->month = $date->format('m');
          $this->next_invoice_date->year = $date->format('Y');
  
          return $this;
      }
code: public function setNextInvoiceDate($date)
      {
          $date = DateTime::createFromFormat('Y-m-d', $date);
  
          $this->next_invoice_date = new stdClass();
          $this->next_invoice_date->day = $date->format('d');
          $this->next_invoice_date->month = $date->format('m');
          $this->next_invoice_date->year = $date->format('Y');
  
          return $this;
      }
code_tokens: public function setNextInvoiceDate ( $ date ) { $ date = DateTime :: createFromFormat ( 'Y-m-d' , $ date ) ; $ this -> next_invoice_date = new stdClass ( ) ; $ this -> next_invoice_date -> day = $ date -> format ( 'd' ) ; $ this -> next_invoice_date -> month = $ date -> format ( 'm' ) ; $ this -> next_invoice_date -> year = $ date -> format ( 'Y' ) ; return $ this ; }
docstring: Set next invoice date
  
  @param  string  $date
  @return $this
docstring_tokens: Set next invoice date