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