Passed
Pull Request — master (#28)
by Manuel
02:43
created

PaymentMeans   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
dl 0
loc 72
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getDisplayText() 0 3 1
A getWallet() 0 3 1
A getCard() 0 3 1
A getTwint() 0 3 1
A getBrand() 0 3 1
A getBankAccount() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Response\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
use Ticketpark\SaferpayJson\Response\Container\BankAccount;
8
use Ticketpark\SaferpayJson\Response\Container\Brand;
9
use Ticketpark\SaferpayJson\Response\Container\Card;
10
11
final class PaymentMeans
12
{
13
    /**
14
     * @var Brand|null
15
     * @SerializedName("Brand")
16
     * @Type("Ticketpark\SaferpayJson\Response\Container\Brand")
17
     */
18
    private $brand;
19
20
    /**
21
     * @var string|null
22
     * @SerializedName("DisplayText")
23
     * @Type("string")
24
     */
25
    private $displayText;
26
27
    /**
28
     * @var string|null
29
     * @SerializedName("Wallet")
30
     * @Type("string")
31
     */
32
    private $wallet;
33
34
    /**
35
     * @var Card|null
36
     * @SerializedName("Card")
37
     * @Type("Ticketpark\SaferpayJson\Response\Container\Card")
38
     */
39
    private $card;
40
41
    /**
42
     * @var BankAccount|null
43
     * @SerializedName("BankAccount")
44
     * @Type("Ticketpark\SaferpayJson\Response\Container\BankAccount")
45
     */
46
    private $bankAccount;
47
48
    /**
49
     * @var Twint|null
50
     * @SerializedName("Twint")
51
     * @Type("Ticketpark\SaferpayJson\Response\Container\Twint")
52
     */
53
    private $twint;
54
55
    public function getBrand(): ?Brand
56
    {
57
        return $this->brand;
58
    }
59
60
    public function getDisplayText(): ?string
61
    {
62
        return $this->displayText;
63
    }
64
65
    public function getWallet(): ?string
66
    {
67
        return $this->wallet;
68
    }
69
70
    public function getCard(): ?Card
71
    {
72
        return $this->card;
73
    }
74
75
    public function getBankAccount(): ?BankAccount
76
    {
77
        return $this->bankAccount;
78
    }
79
80
    public function getTwint(): ?Twint
81
    {
82
        return $this->twint;
83
    }
84
}
85