AddressTransactionsResponse   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 getPendingTransactions() 0 3 1
A getTransactions() 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\Response\AbstractResponse;
19
use JMS\Serializer\Annotation as Serializer;
20
21
class AddressTransactionsResponse extends AbstractResponse
22
{
23
    /**
24
     * @Serializer\SerializedName("transactions")
25
     * @Serializer\Type("Bitaps\WalletAPI\Response\AddressTransactions\Transactions")
26
     *
27
     * @var Transactions
28
     */
29
    private Transactions $transactions;
30
31
    /**
32
     * @Serializer\SerializedName("pending_transactions")
33
     * @Serializer\Type("Bitaps\WalletAPI\Response\AddressTransactions\PendingTransactions")
34
     *
35
     * @var PendingTransactions
36
     */
37
    private PendingTransactions $pendingTransactions;
38
39
    /**
40
     * @return Transactions
41
     */
42
    public function getTransactions(): Transactions
43
    {
44
        return $this->transactions;
45
    }
46
47
    /**
48
     * @return PendingTransactions
49
     */
50
    public function getPendingTransactions(): PendingTransactions
51
    {
52
        return $this->pendingTransactions;
53
    }
54
}
55