added order number to projects #107 (#108)

This commit is contained in:
Kevin Papst
2018-01-25 21:42:18 +01:00
committed by GitHub
parent 7f5b5ac254
commit 1958bb9d09
11 changed files with 76 additions and 87 deletions

View File

@@ -77,6 +77,8 @@ class InvoiceModel
}
/**
* Do not use this method for rendering the invoice, use InvoiceModel::getCalculator()->getEntries() instead.
*
* @return Timesheet[]
*/
public function getEntries(): array
@@ -146,17 +148,6 @@ class InvoiceModel
return new \DateTime();
}
/**
* @param CalculatorInterface $calculator
* @return InvoiceModel
*/
public function setCalculator(CalculatorInterface $calculator)
{
$this->calculator = $calculator;
$this->calculator->setModel($this);
return $this;
}
/**
* @param NumberGeneratorInterface $generator
* @return InvoiceModel
@@ -176,6 +167,17 @@ class InvoiceModel
return $this->generator;
}
/**
* @param CalculatorInterface $calculator
* @return InvoiceModel
*/
public function setCalculator(CalculatorInterface $calculator)
{
$this->calculator = $calculator;
$this->calculator->setModel($this);
return $this;
}
/**
* @return CalculatorInterface
*/