Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | abstract class AbstractBillInterpreter implements BillInterpreter |
||
18 | { |
||
19 | protected $regex; |
||
20 | protected $matches = []; |
||
21 | |||
22 | 19 | public function __construct(string $regex) |
|
25 | 19 | } |
|
26 | |||
27 | |||
28 | abstract public function interpret(BillContext $context): float; |
||
29 | |||
30 | 13 | public function isValid(BillContext $context): bool |
|
35 |