Passed
Pull Request — master (#66)
by Manuel
08:26 queued 05:25
created

RiskFactors   A

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 setPayerProfile() 0 5 1
A getOrder() 0 3 1
A setOrder() 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
     * @var Order|null
30
     * @SerializedName("Order")
31
     */
32
    private $order;
33
34
    public function getDeliveryType(): ?string
35
    {
36
        return $this->deliveryType;
37
    }
38
39
    public function setDeliveryType(?string $deliveryType): self
40
    {
41
        $this->deliveryType = $deliveryType;
42
43
        return $this;
44
    }
45
46
    public function getPayerProfile(): ?PayerProfile
47
    {
48
        return $this->payerProfile;
49
    }
50
51
    public function setPayerProfile(?PayerProfile $payerProfile): self
52
    {
53
        $this->payerProfile = $payerProfile;
54
55
        return $this;
56
    }
57
58
    public function getOrder(): ?Order
59
    {
60
        return $this->order;
61
    }
62
63
    public function setOrder(?Order $order): self
64
    {
65
        $this->order = $order;
66
67
        return $this;
68
    }
69
}
70