rounding rules via admin screen, round begin when starting record (#1229)
This commit is contained in:
@@ -26,18 +26,10 @@ class TimesheetSubscriber implements EventSubscriber
|
||||
protected $calculator;
|
||||
|
||||
/**
|
||||
* @param iterable $calculators
|
||||
* @param CalculatorInterface[] $calculators
|
||||
*/
|
||||
public function __construct(iterable $calculators)
|
||||
{
|
||||
foreach ($calculators as $calculator) {
|
||||
if (!($calculator instanceof CalculatorInterface)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Invalid TimesheetCalculator implementation given. Expected CalculatorInterface but received ' .
|
||||
get_class($calculator)
|
||||
);
|
||||
}
|
||||
}
|
||||
$this->calculator = $calculators;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user