Total Complexity | 5 |
Total Lines | 97 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class TransferBuilder extends Builder |
||
6 | { |
||
7 | /** |
||
8 | * The source account ID |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | public $source_account_id; |
||
13 | |||
14 | /** |
||
15 | * The target account ID |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public $target_account_id; |
||
20 | |||
21 | /** |
||
22 | * The amount |
||
23 | * |
||
24 | * @var float |
||
25 | */ |
||
26 | public $amount; |
||
27 | |||
28 | /** |
||
29 | * The currency in 3-letter ISO format |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | public $currency; |
||
34 | |||
35 | /** |
||
36 | * An optional reference |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | public $reference; |
||
41 | |||
42 | /** |
||
43 | * The unique request ID |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | public $request_id; |
||
48 | |||
49 | /** |
||
50 | * Set the source account ID |
||
51 | * |
||
52 | * @param string $id |
||
53 | * @return self |
||
54 | */ |
||
55 | public function sourceAccount(string $id) |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * Set the target account ID |
||
62 | * |
||
63 | * @param string $id |
||
64 | * @return self |
||
65 | */ |
||
66 | public function targetAccount(string $id) |
||
67 | { |
||
68 | return $this->setAttribute('target_account_id', $id); |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Set the transfer amount |
||
73 | * |
||
74 | * @param float $amount |
||
75 | * @return self |
||
76 | */ |
||
77 | public function amount(float $amount) |
||
78 | { |
||
79 | return $this->setAttribute('amount', $amount); |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * Set the transfer currency |
||
84 | * |
||
85 | * @param string $currency |
||
86 | * @return self |
||
87 | */ |
||
88 | public function currency(string $currency) |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * Set the optional transfer reference |
||
95 | * |
||
96 | * @param string $reference |
||
97 | * @return self |
||
98 | */ |
||
99 | public function reference(string $reference) |
||
102 | } |
||
103 | } |
||
104 |