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;
    }
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;
    }
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 ; }
Set next invoice date

@param  string  $date
@return $this
Set next invoice date