Passed
Pull Request — master (#28)
by Manuel
09:19
created

CardForm::setHolderName()   A

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 declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class CardForm
9
{
10
    const HOLDER_NAME_NONE = 'NONE';
11
    const HOLDER_NAME_MANDATORY = 'MANDATORY';
12
13
    /**
14
     * @var string|null
15
     * @SerializedName("HolderName")
16
     */
17
    private $holderName;
18
19
    public function getHolderName(): ?string
20
    {
21
        return $this->holderName;
22
    }
23
24
    public function setHolderName(string $holderName): self
25
    {
26
        $this->holderName = $holderName;
27
28
        return $this;
29
    }
30
}
31