Total Complexity | 6 |
Total Lines | 76 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
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 | |||
35 | public function getDeliveryType(): ?string |
||
36 | { |
||
37 | return $this->deliveryType; |
||
38 | } |
||
39 | |||
40 | |||
41 | public function setDeliveryType(?string $deliveryType): self |
||
42 | { |
||
43 | $this->deliveryType = $deliveryType; |
||
44 | |||
45 | return $this; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return PayerProfile|null |
||
50 | */ |
||
51 | public function getPayerProfile(): ?PayerProfile |
||
52 | { |
||
53 | return $this->payerProfile; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param PayerProfile|null $payerProfile |
||
58 | * @return RiskFactors |
||
59 | */ |
||
60 | public function setPayerProfile(?PayerProfile $payerProfile): self |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @return Order|null |
||
69 | */ |
||
70 | public function getOrder(): ?Order |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @param Order|null $order |
||
77 | * @return RiskFactors |
||
78 | */ |
||
79 | public function setOrder(?Order $order): self |
||
84 | } |
||
85 | } |
||
86 |