Brand   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaymentMethod() 0 3 1
A setPaymentMethod() 0 5 1
A getName() 0 3 1
A setName() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
final class Brand
11
{
12
    /**
13
     * @var string|null
14
     * @SerializedName("PaymentMethod")
15
     */
16
    private $paymentMethod;
17
18
    /**
19
     * @var string|null
20
     * @SerializedName("Name")
21
     */
22
    private $name;
23
24
    public function getPaymentMethod(): ?string
25
    {
26
        return $this->paymentMethod;
27
    }
28
29
    public function setPaymentMethod(?string $paymentMethod): self
30
    {
31
        $this->paymentMethod = $paymentMethod;
32
33
        return $this;
34
    }
35
36
    public function getName(): ?string
37
    {
38
        return $this->name;
39
    }
40
41
    public function setName(?string $name): self
42
    {
43
        $this->name = $name;
44
45
        return $this;
46
    }
47
}
48