RiskFactors   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

Changes 5
Bugs 0 Features 0
Metric Value
eloc 18
c 5
b 0
f 0
dl 0
loc 60
rs 10
wmc 6

6 Methods

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