Set Label All functions of set label

Complete example of various set label functions. Please note that if you haven't turn off data file in settings page then it will override the label with same key. You can use this functionality to override specific label key.

  
                           //create object of xinvoice class, you can pass setting array to set config label here.
                    $xinvoice = new Xinvoice();
                 
                    //set company array
                    $company = array("logo" => "http://pdocrud.com/assets/img/PDOCrud-logo.png");
                    //set company label       
                    $xinvoice->setInvoiceCompanyLabel($company);    
                    
                     // You can set invoice date label using this function or can change directly in config file.
                    $xinvoice->setInvoiceDateLabel("Invoice Date: ");
                    
                    // You can set invoice date using this function or can change directly in config file.
                    $xinvoice->setInvoiceDueDateLabel("Invoice DueDate: ");
                    
                    //set header array
                    $header = array("no" => "Inv. No: ");
                    //set header label 
                    $xinvoice->setInvoiceHeaderLabel($header);       
                    
                    // You can set invoice number using this function or can change directly in config file.
                    $xinvoice->setInvoiceNoLabel("Inv. No.: ");
                    
                    //set from array
                    $from = array("name" => "Sender: ");
                    //set from label 
                    $xinvoice->setInvoiceFromLabel($from); 
                    
                    //set to array
                    $to = array("name" => "Receiver: ");
                    //set to label 
                    $xinvoice->setInvoiceToLabel($to);     
                    
                    //set payment array
                    $payment = array("method" => "Payment method: ", "note"=>"Important Note: ");
                    //set payment label 
                    $xinvoice->setInvoicePaymentLabel($payment);    
    
                    //set footer array
                    $footer = array("note" => "Terms and Conditions: ");
                    //set footer label 
                    $xinvoice->setInvoiceFooterLabel($footer);
                    echo $xinvoice->render();