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: | class AbstractSepaDirectDebitPaymentProduct771SpecificInput extends DataObject |
15: | { |
16: | |
17: | |
18: | |
19: | |
20: | public $mandateReference = null; |
21: | |
22: | |
23: | |
24: | |
25: | public function toObject() |
26: | { |
27: | $object = parent::toObject(); |
28: | if (!is_null($this->mandateReference)) { |
29: | $object->mandateReference = $this->mandateReference; |
30: | } |
31: | return $object; |
32: | } |
33: | |
34: | |
35: | |
36: | |
37: | |
38: | |
39: | public function fromObject($object) |
40: | { |
41: | parent::fromObject($object); |
42: | if (property_exists($object, 'mandateReference')) { |
43: | $this->mandateReference = $object->mandateReference; |
44: | } |
45: | return $this; |
46: | } |
47: | } |
48: | |