| Total Complexity | 5 |
| Total Lines | 82 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class Loan extends AbstractResponse |
||
| 23 | { |
||
| 24 | use DateTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Example: 75073 |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | public $id; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Example: 0.00020000 |
||
| 35 | * |
||
| 36 | * @var float |
||
| 37 | */ |
||
| 38 | public $rate; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Example: 0.72234880 |
||
| 42 | * |
||
| 43 | * @var float |
||
| 44 | */ |
||
| 45 | public $amount; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Example: 2 |
||
| 49 | * |
||
| 50 | * @var int |
||
| 51 | */ |
||
| 52 | public $duration; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Available only for provided loans |
||
| 56 | * |
||
| 57 | * @var bool |
||
| 58 | */ |
||
| 59 | public $autoRenew; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @internal |
||
| 63 | * @param int $id |
||
| 64 | */ |
||
| 65 | public function setId(int $id): void |
||
| 66 | { |
||
| 67 | $this->id = $id; |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @internal |
||
| 72 | * @param float $rate |
||
| 73 | */ |
||
| 74 | public function setRate(float $rate): void |
||
| 75 | { |
||
| 76 | $this->rate = $rate; |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @internal |
||
| 81 | * @param float $amount |
||
| 82 | */ |
||
| 83 | public function setAmount(float $amount): void |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @internal |
||
| 90 | * @param int $duration |
||
| 91 | */ |
||
| 92 | public function setDuration(int $duration): void |
||
| 93 | { |
||
| 94 | $this->duration = $duration; |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @internal |
||
| 99 | * @param bool $autoRenew |
||
| 100 | */ |
||
| 101 | public function setAutoRenew(bool $autoRenew): void |
||
| 104 | } |
||
| 105 | } |