GetAddressesResponse::getTxList()   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\Addresses;
17
18
use Bitaps\WalletAPI\Response\AbstractResponse;
19
use Bitaps\WalletAPI\Response\Addresses\Model\Address;
20
use JMS\Serializer\Annotation as Serializer;
21
22
class GetAddressesResponse extends AbstractResponse
23
{
24
    /**
25
     * @Serializer\SerializedName("address_list")
26
     * @Serializer\Type("array<Bitaps\WalletAPI\Response\Addresses\Model\Address>")
27
     *
28
     * @var Address[]
29
     */
30
    private array $txList;
31
32
    /**
33
     * @Serializer\SerializedName("next_page")
34
     * @Serializer\Type("bool")
35
     *
36
     * @var bool
37
     */
38
    private bool $nextPage;
39
40
    /**
41
     * @return Address[]
42
     */
43
    public function getTxList(): array
44
    {
45
        return $this->txList;
46
    }
47
48
    /**
49
     * @return bool
50
     */
51
    public function isNextPage(): bool
52
    {
53
        return $this->nextPage;
54
    }
55
}
56