Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
add id
Browse files Browse the repository at this point in the history
  • Loading branch information
apeisa committed May 12, 2016
1 parent 8cdb139 commit 17310e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PaymentProduct.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

class PaymentProduct extends WireData {
public function __construct($title, $amount, $quantity = 1, $tax_percentage = null) {
public function __construct($title, $amount, $quantity = 1, $tax_percentage = null, $id = null) {
$this->title = $title;
$this->amount = $amount;
$this->quantity = $quantity;
$this->tax_percentage = $tax_percentage;
$this->id = $id;
$this->total = $amount * $quantity;
}
}

0 comments on commit 17310e3

Please sign in to comment.