Skip to content

Commit

Permalink
Added methods to interface
Browse files Browse the repository at this point in the history
Removed potential side effect causing code
  • Loading branch information
faizanakram99 committed Aug 21, 2019
1 parent 78cfdd7 commit d02e376
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
18 changes: 17 additions & 1 deletion src/Qbil/Models/InvoiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,21 @@

interface InvoiceInterface
{

/**
* @return InvoiceLineInterface[]
*/
public function addInvoiceLine();
public function getRelation();
public function getSubsidiary();
public function getSupplierInvoiceNumber();
public function getAmount();
public function getVatAmount();
public function getInvoiceDate();
public function getDueDate();
public function getCurrency();
public function getTheirVatRegistration();
public function getOurVatRegistration();
public function getInvoiceLines();
public function getOrder();
public function getContract();
}
16 changes: 0 additions & 16 deletions src/Qbil/Models/InvoiceLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,6 @@ public function getAllocatedInvoice()
return $this->allocatedInvoice;
}

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

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

/**
* @return mixed
*/
Expand Down
8 changes: 7 additions & 1 deletion src/Qbil/Models/InvoiceLineInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@

interface InvoiceLineInterface
{

public function getOrder();
public function getQuantity();
public function getAmount();
public function getPrice();
public function getType();
public function getAllocatedInvoice();
public function getPurchaseContract();
}

0 comments on commit d02e376

Please sign in to comment.