Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class FixDiscountStrategy implements DiscountContract |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | protected $sign; |
||
14 | |||
15 | 3 | public function __construct(int $sign) |
|
16 | { |
||
17 | 3 | $this->sign = $sign; |
|
18 | 3 | } |
|
19 | |||
20 | /** |
||
21 | * Make Discount |
||
22 | * |
||
23 | * @param int $basePrice |
||
24 | * @return float |
||
25 | */ |
||
26 | 2 | public function make(int $basePrice): float |
|
33 | } |
||
34 | } |