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

CardForm   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setHolderName() 0 5 1
A getHolderName() 0 3 1
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