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