Receiver::getOut()   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 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Package: PHP Bitaps API
7
 *
8
 * (c) Eldar Gazaliev <[email protected]>
9
 *
10
 *  Link: <https://github.com/MyZik>
11
 *
12
 * For the full copyright and license information, please view the LICENSE file
13
 * that was distributed with this source code.
14
 */
15
16
namespace Bitaps\WalletAPI\Response\SendPayment\Model;
17
18
class Receiver
19
{
20
    /**
21
     * @var string
22
     */
23
    private string $address;
24
25
    /**
26
     * @var string
27
     */
28
    private string $txHash;
29
30
    /**
31
     * @var int|null
32
     */
33
    private ?int $out;
34
35
    /**
36
     * @var int
37
     */
38
    private int $amount;
39
40
    /**
41
     * @var string|null
42
     */
43
    private ?string $type;
44
45
    /**
46
     * @return string
47
     */
48
    public function getAddress(): string
49
    {
50
        return $this->address;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getTxHash(): string
57
    {
58
        return $this->txHash;
59
    }
60
61
    /**
62
     * @return int|null
63
     */
64
    public function getOut(): ?int
65
    {
66
        return $this->out;
67
    }
68
69
    /**
70
     * @return int
71
     */
72
    public function getAmount(): int
73
    {
74
        return $this->amount;
75
    }
76
77
    /**
78
     * @return string|null
79
     */
80
    public function getType(): ?string
81
    {
82
        return $this->type;
83
    }
84
}
85