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