Brand::setName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
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