| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class FlatTax extends Base |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @config |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private static $name = 'GST'; |
||
|
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * @config |
||
| 23 | * @var float |
||
| 24 | */ |
||
| 25 | private static $rate = 0.15; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @config |
||
| 29 | * @var bool |
||
| 30 | */ |
||
| 31 | private static $exclusive = true; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @config |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private static $includedmessage = '%.1f%% %s (inclusive)'; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @config |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | private static $excludedmessage = '%.1f%% %s'; |
||
| 44 | |||
| 45 | public function __construct($record = null, $isSingleton = false, $model = null) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get the tax amount to charge on the order. |
||
| 53 | */ |
||
| 54 | public function value($incoming) |
||
| 65 |