PendingTransactions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 2

2 Methods

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