src/TransactionBuilder.php
/**
     * Add a line to this transaction
     *
     * @param   float               $amount      Value of the item.
     * @param   float               $quantity    Quantity of the item.
     * @param   string              $taxCode     Tax Code of the item. If left blank, the default item (P0000000) is assumed.
     * @return  TransactionBuilder
     */
Add a line to this transaction
@param   float               $amount      Value of the item.
@param   float               $quantity    Quantity of the item.
@param   string              $taxCode     Tax Code of the item. If left blank, the default item (P0000000) is assumed.
Add a line to this transaction @param float $amount Value of the item . @param float $quantity Quantity of the item . @param string $taxCode Tax Code of the item . If left blank the default item ( P0000000 ) is assumed .
public function withLine($amount, $quantity, $itemCode, $taxCode)
    {
        $l = [
            'number' => $this->_line_number,
            'quantity' => $quantity,
            'amount' => $amount,
            'taxCode' => $taxCode,
            'itemCode' => $itemCode
        ];
        array_push($this->_model['lines'], $l);
        $this->_line_number++;
        return $this;
    }
public function withLine ( $ amount , $ quantity , $ itemCode , $ taxCode ) { $ l = [ 'number' => $ this -> _line_number , 'quantity' => $ quantity , 'amount' => $ amount , 'taxCode' => $ taxCode , 'itemCode' => $ itemCode ] ; array_push ( $ this -> _model [ 'lines' ] , $ l ) ; $ this -> _line_number ++ ; return $ this ; }
Add a line to this transaction
 @param   float               $amount      Value of the item.
Add a line to this transaction @param float $amount Value of the item .
// Continue building