CardForm::setHolderName()   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 CardForm
11
{
12
    public const HOLDER_NAME_NONE = 'NONE';
13
    public const HOLDER_NAME_MANDATORY = 'MANDATORY';
14
15
    /**
16
     * @var string|null
17
     * @SerializedName("HolderName")
18
     */
19
    private $holderName;
20
21
    public function getHolderName(): ?string
22
    {
23
        return $this->holderName;
24
    }
25
26
    public function setHolderName(string $holderName): self
27
    {
28
        $this->holderName = $holderName;
29
30
        return $this;
31
    }
32
}
33