1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | namespace Worldline\Connect\Sdk\V1\Domain; |
7: | |
8: | use UnexpectedValueException; |
9: | use Worldline\Connect\Sdk\Domain\DataObject; |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | class CashPaymentProduct1503SpecificInput extends DataObject |
16: | { |
17: | |
18: | |
19: | |
20: | |
21: | public $returnUrl = null; |
22: | |
23: | |
24: | |
25: | |
26: | public function toObject() |
27: | { |
28: | $object = parent::toObject(); |
29: | if (!is_null($this->returnUrl)) { |
30: | $object->returnUrl = $this->returnUrl; |
31: | } |
32: | return $object; |
33: | } |
34: | |
35: | |
36: | |
37: | |
38: | |
39: | |
40: | public function fromObject($object) |
41: | { |
42: | parent::fromObject($object); |
43: | if (property_exists($object, 'returnUrl')) { |
44: | $this->returnUrl = $object->returnUrl; |
45: | } |
46: | return $this; |
47: | } |
48: | } |
49: | |