Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class Rate implements Rateable |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | protected $amount; |
||
17 | |||
18 | /** |
||
19 | * @var Wallet|\Bavix\Wallet\Models\Wallet |
||
20 | */ |
||
21 | protected $withCurrency; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 3 | public function withAmount($amount): Rateable |
|
27 | { |
||
28 | 3 | $this->amount = $amount; |
|
29 | |||
30 | 3 | return $this; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 3 | public function withCurrency(Wallet $wallet): Rateable |
|
37 | { |
||
38 | 3 | $this->withCurrency = $wallet; |
|
39 | |||
40 | 3 | return $this; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 3 | public function convertTo(Wallet $wallet) |
|
49 | } |
||
50 | } |
||
51 |