1: <?php
2: /*
3: * This class was auto-generated from the API references found at
4: * https://apireference.connect.worldline-solutions.com/
5: */
6: namespace Worldline\Connect\Sdk\V1\Domain;
7:
8: use UnexpectedValueException;
9: use Worldline\Connect\Sdk\Domain\DataObject;
10:
11: /**
12: * @package Worldline\Connect\Sdk\V1\Domain
13: */
14: class AbstractSepaDirectDebitPaymentProduct771SpecificInput extends DataObject
15: {
16: /**
17: * @var string
18: * @deprecated Use existingUniqueMandateReference or mandate.uniqueMandateReference instead
19: */
20: public $mandateReference = null;
21:
22: /**
23: * @return object
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: * @param object $object
36: * @return $this
37: * @throws UnexpectedValueException
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: