@@ -21,7 +21,7 @@ |
||
21 | 21 | * |
22 | 22 | * @param string $type Type of the tax amount |
23 | 23 | * |
24 | - * @return int $percentage Amount of the tax |
|
24 | + * @return double $percentage Amount of the tax |
|
25 | 25 | */ |
26 | 26 | public function percentage($type = 'default'): float |
27 | 27 | { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param string|FeiMx\Tax\Contracts\TaxContract $tax |
32 | 32 | * @param bool $retention |
33 | 33 | * |
34 | - * @return mixed |
|
34 | + * @return TaxManager |
|
35 | 35 | */ |
36 | 36 | public function addTax($tax, $retention = false) |
37 | 37 | { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * Get total amount after taxes. |
68 | 68 | * |
69 | - * @return float Total amount |
|
69 | + * @return string Total amount |
|
70 | 70 | */ |
71 | 71 | public function total() |
72 | 72 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace FeiMx\Tax\Traits; |
4 | 4 | |
5 | -use FeiMx\Tax\Models\TaxGroup; |
|
6 | 5 | use FeiMx\Tax\Exceptions\TaxErrorException; |
6 | +use FeiMx\Tax\Models\TaxGroup; |
|
7 | 7 | use Illuminate\Database\Eloquent\Relations\MorphToMany; |
8 | 8 | |
9 | 9 | trait Taxable |