TransferBuilder::reference()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace tbclla\Revolut\Builders;
4
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)
56
    {
57
        return $this->setAttribute('source_account_id', $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)
89
    {
90
        return $this->setAttribute('currency', $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)
100
    {
101
        return $this->setAttribute('reference', $reference);
102
    }
103
}
104