MastercardIssuerInstallments::setChosenPlan()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
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 MastercardIssuerInstallments
11
{
12
    /**
13
     * @var ChosenPlan|null
14
     * @SerializedName("ChosenPlan")
15
     * @Type("array")
16
     */
17
    private $chosenPlan;
18
19
    public function getChosenPlan(): ?ChosenPlan
20
    {
21
        return $this->chosenPlan;
22
    }
23
24
    public function setChosenPlan(?ChosenPlan $chosenPlan): self
25
    {
26
        $this->chosenPlan = $chosenPlan;
27
28
        return $this;
29
    }
30
}
31