Skip to content

Commit

Permalink
added allocated invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Allis committed Feb 12, 2019
1 parent 2676a1f commit 9e650cc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/Qbil/Models/InvoiceLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@

class InvoiceLine
{
public function __construct($order, $quantity, $amount, $price, $type)
public function __construct($order, $quantity, $amount, $price, $type, $allocatedInvoice = null)
{
$this->order = $order;
$this->quantity = $quantity;
$this->amount = $amount;
$this->price = $price;
$this->type = $type;
$this->allocatedInvoice = $allocatedInvoice;
}

private $order;
private $quantity;
private $amount;
private $price;
private $type;
private $allocatedInvoice;

/**
* @return mixed
Expand Down Expand Up @@ -65,11 +67,27 @@ public function getType()
return $this->type;
}

/**
* @return mixed
*/
public function getAllocatedInvoice()
{
return $this->allocatedInvoice;
}

/**
* @param mixed $type
*/
public function setType($type)
{
$this->type = $type;
}

/**
* @param mixed $type
*/
public function setAllocatedInvoice($allocatedInvoice)
{
$this->allocatedInvoice = $allocatedInvoice;
}
}

0 comments on commit 9e650cc

Please sign in to comment.