Passed
Pull Request — master (#55)
by
unknown
09:41
created

RiskFactors   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 14
c 3
b 0
f 0
dl 0
loc 51
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayerProfile() 0 5 1
A setDeliveryType() 0 5 1
A getPayerProfile() 0 3 1
A getDeliveryType() 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 RiskFactors
9
{
10
    const DELIVERY_TYPE_EMAIL = "EMAIL";
11
    const DELIVERY_TYPE_SHOP = "SHOP";
12
    const DELIVERY_TYPE_HOMEDELIVERY = "HOMEDELIVERY";
13
    const DELIVERY_TYPE_PICKUP = "PICKUP";
14
    const DELIVERY_TYPE_HQ = "HQ";
15
16
    /**
17
     * @var string|null
18
     * @SerializedName("DeliveryType")
19
     */
20
    private $deliveryType;
21
22
    /**
23
     * @var PayerProfile|null
24
     * @SerializedName("PayerProfile")
25
     */
26
    private $payerProfile;
27
28
29
    public function getDeliveryType(): ?string
30
    {
31
        return $this->deliveryType;
32
    }
33
34
35
    public function setDeliveryType(?string $deliveryType): self
36
    {
37
        $this->deliveryType = $deliveryType;
38
39
        return $this;
40
    }
41
42
    /**
43
     * @return PayerProfile|null
44
     */
45
    public function getPayerProfile(): ?PayerProfile
46
    {
47
        return $this->payerProfile;
48
    }
49
50
    /**
51
     * @param PayerProfile|null $payerProfile
52
     * @return RiskFactors
53
     */
54
    public function setPayerProfile(?PayerProfile $payerProfile): self
55
    {
56
        $this->payerProfile = $payerProfile;
57
58
        return $this;
59
    }
60
}
61