1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | namespace Worldline\Connect\Sdk\V1\Domain; |
7: | |
8: | use UnexpectedValueException; |
9: | |
10: | |
11: | |
12: | |
13: | class PaymentCreationOutput extends PaymentCreationReferences |
14: | { |
15: | |
16: | |
17: | |
18: | public $isCheckedRememberMe = null; |
19: | |
20: | |
21: | |
22: | |
23: | public $isNewToken = null; |
24: | |
25: | |
26: | |
27: | |
28: | public $token = null; |
29: | |
30: | |
31: | |
32: | |
33: | public $tokenizationSucceeded = null; |
34: | |
35: | |
36: | |
37: | |
38: | public function toObject() |
39: | { |
40: | $object = parent::toObject(); |
41: | if (!is_null($this->isCheckedRememberMe)) { |
42: | $object->isCheckedRememberMe = $this->isCheckedRememberMe; |
43: | } |
44: | if (!is_null($this->isNewToken)) { |
45: | $object->isNewToken = $this->isNewToken; |
46: | } |
47: | if (!is_null($this->token)) { |
48: | $object->token = $this->token; |
49: | } |
50: | if (!is_null($this->tokenizationSucceeded)) { |
51: | $object->tokenizationSucceeded = $this->tokenizationSucceeded; |
52: | } |
53: | return $object; |
54: | } |
55: | |
56: | |
57: | |
58: | |
59: | |
60: | |
61: | public function fromObject($object) |
62: | { |
63: | parent::fromObject($object); |
64: | if (property_exists($object, 'isCheckedRememberMe')) { |
65: | $this->isCheckedRememberMe = $object->isCheckedRememberMe; |
66: | } |
67: | if (property_exists($object, 'isNewToken')) { |
68: | $this->isNewToken = $object->isNewToken; |
69: | } |
70: | if (property_exists($object, 'token')) { |
71: | $this->token = $object->token; |
72: | } |
73: | if (property_exists($object, 'tokenizationSucceeded')) { |
74: | $this->tokenizationSucceeded = $object->tokenizationSucceeded; |
75: | } |
76: | return $this; |
77: | } |
78: | } |
79: | |