1 | <?php |
||
31 | class PaymentMethod implements EntityInterface |
||
32 | { |
||
33 | use Identifiable; |
||
34 | use Enableable; |
||
35 | use Sortable; |
||
36 | use Translatable; |
||
37 | use Timestampable; |
||
38 | use Blameable; |
||
39 | use ShopCollectionAwareTrait; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $processor = ''; |
||
45 | |||
46 | /** |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $configuration = []; |
||
50 | |||
51 | /** |
||
52 | * @var OrderStatus |
||
53 | */ |
||
54 | protected $paymentPendingOrderStatus; |
||
55 | |||
56 | /** |
||
57 | * @var OrderStatus |
||
58 | */ |
||
59 | protected $paymentSuccessOrderStatus; |
||
60 | |||
61 | /** |
||
62 | * @var OrderStatus |
||
63 | */ |
||
64 | protected $paymentFailureOrderStatus; |
||
65 | |||
66 | /** |
||
67 | * @var Collection |
||
68 | */ |
||
69 | protected $shippingMethods; |
||
70 | |||
71 | /** |
||
72 | * @var Collection |
||
73 | */ |
||
74 | protected $clientGroups; |
||
75 | |||
76 | public function __construct() |
||
77 | { |
||
78 | $this->shippingMethods = new ArrayCollection(); |
||
79 | $this->shops = new ArrayCollection(); |
||
80 | $this->clientGroups = new ArrayCollection(); |
||
81 | } |
||
82 | |||
83 | public function getProcessor(): string |
||
84 | { |
||
85 | return $this->processor; |
||
86 | } |
||
87 | |||
88 | public function setProcessor(string $processor) |
||
92 | |||
93 | public function getShippingMethods(): Collection |
||
94 | { |
||
97 | |||
98 | public function setShippingMethods(Collection $shippingMethods) |
||
102 | |||
103 | public function getConfiguration(): array |
||
107 | |||
108 | public function setConfiguration(array $configuration) |
||
112 | |||
113 | public function getClientGroups(): Collection |
||
117 | |||
118 | public function setClientGroups(Collection $clientGroups) |
||
122 | |||
123 | public function getPaymentPendingOrderStatus() |
||
127 | |||
128 | public function setPaymentPendingOrderStatus(OrderStatus $paymentPendingOrderStatus) |
||
132 | |||
133 | public function getPaymentSuccessOrderStatus() |
||
137 | |||
138 | public function setPaymentSuccessOrderStatus(OrderStatus $paymentSuccessOrderStatus) |
||
142 | |||
143 | public function getPaymentFailureOrderStatus() |
||
147 | |||
148 | public function setPaymentFailureOrderStatus(OrderStatus $paymentFailureOrderStatus) |
||
152 | |||
153 | public function translate($locale = null, $fallbackToDefault = true): PaymentMethodTranslation |
||
157 | } |
||
158 |