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 DisputeStatusOutput extends DataObject
15: {
16: /**
17: * @var bool
18: */
19: public $isCancellable = null;
20:
21: /**
22: * @var string
23: */
24: public $statusCategory = null;
25:
26: /**
27: * @var int
28: */
29: public $statusCode = null;
30:
31: /**
32: * @var string
33: */
34: public $statusCodeChangeDateTime = null;
35:
36: /**
37: * @return object
38: */
39: public function toObject()
40: {
41: $object = parent::toObject();
42: if (!is_null($this->isCancellable)) {
43: $object->isCancellable = $this->isCancellable;
44: }
45: if (!is_null($this->statusCategory)) {
46: $object->statusCategory = $this->statusCategory;
47: }
48: if (!is_null($this->statusCode)) {
49: $object->statusCode = $this->statusCode;
50: }
51: if (!is_null($this->statusCodeChangeDateTime)) {
52: $object->statusCodeChangeDateTime = $this->statusCodeChangeDateTime;
53: }
54: return $object;
55: }
56:
57: /**
58: * @param object $object
59: * @return $this
60: * @throws UnexpectedValueException
61: */
62: public function fromObject($object)
63: {
64: parent::fromObject($object);
65: if (property_exists($object, 'isCancellable')) {
66: $this->isCancellable = $object->isCancellable;
67: }
68: if (property_exists($object, 'statusCategory')) {
69: $this->statusCategory = $object->statusCategory;
70: }
71: if (property_exists($object, 'statusCode')) {
72: $this->statusCode = $object->statusCode;
73: }
74: if (property_exists($object, 'statusCodeChangeDateTime')) {
75: $this->statusCodeChangeDateTime = $object->statusCodeChangeDateTime;
76: }
77: return $this;
78: }
79: }
80: