| 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 Swift extends DataObject |
| 15: | { |
| 16: | |
| 17: | |
| 18: | |
| 19: | public $bic = null; |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | public $category = null; |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | public $chipsUID = null; |
| 30: | |
| 31: | |
| 32: | |
| 33: | |
| 34: | public $extraInfo = null; |
| 35: | |
| 36: | |
| 37: | |
| 38: | |
| 39: | public $poBoxCountry = null; |
| 40: | |
| 41: | |
| 42: | |
| 43: | |
| 44: | public $poBoxLocation = null; |
| 45: | |
| 46: | |
| 47: | |
| 48: | |
| 49: | public $poBoxNumber = null; |
| 50: | |
| 51: | |
| 52: | |
| 53: | |
| 54: | public $poBoxZip = null; |
| 55: | |
| 56: | |
| 57: | |
| 58: | |
| 59: | public $routingBic = null; |
| 60: | |
| 61: | |
| 62: | |
| 63: | |
| 64: | public $services = null; |
| 65: | |
| 66: | |
| 67: | |
| 68: | |
| 69: | public function toObject() |
| 70: | { |
| 71: | $object = parent::toObject(); |
| 72: | if (!is_null($this->bic)) { |
| 73: | $object->bic = $this->bic; |
| 74: | } |
| 75: | if (!is_null($this->category)) { |
| 76: | $object->category = $this->category; |
| 77: | } |
| 78: | if (!is_null($this->chipsUID)) { |
| 79: | $object->chipsUID = $this->chipsUID; |
| 80: | } |
| 81: | if (!is_null($this->extraInfo)) { |
| 82: | $object->extraInfo = $this->extraInfo; |
| 83: | } |
| 84: | if (!is_null($this->poBoxCountry)) { |
| 85: | $object->poBoxCountry = $this->poBoxCountry; |
| 86: | } |
| 87: | if (!is_null($this->poBoxLocation)) { |
| 88: | $object->poBoxLocation = $this->poBoxLocation; |
| 89: | } |
| 90: | if (!is_null($this->poBoxNumber)) { |
| 91: | $object->poBoxNumber = $this->poBoxNumber; |
| 92: | } |
| 93: | if (!is_null($this->poBoxZip)) { |
| 94: | $object->poBoxZip = $this->poBoxZip; |
| 95: | } |
| 96: | if (!is_null($this->routingBic)) { |
| 97: | $object->routingBic = $this->routingBic; |
| 98: | } |
| 99: | if (!is_null($this->services)) { |
| 100: | $object->services = $this->services; |
| 101: | } |
| 102: | return $object; |
| 103: | } |
| 104: | |
| 105: | |
| 106: | |
| 107: | |
| 108: | |
| 109: | |
| 110: | public function fromObject($object) |
| 111: | { |
| 112: | parent::fromObject($object); |
| 113: | if (property_exists($object, 'bic')) { |
| 114: | $this->bic = $object->bic; |
| 115: | } |
| 116: | if (property_exists($object, 'category')) { |
| 117: | $this->category = $object->category; |
| 118: | } |
| 119: | if (property_exists($object, 'chipsUID')) { |
| 120: | $this->chipsUID = $object->chipsUID; |
| 121: | } |
| 122: | if (property_exists($object, 'extraInfo')) { |
| 123: | $this->extraInfo = $object->extraInfo; |
| 124: | } |
| 125: | if (property_exists($object, 'poBoxCountry')) { |
| 126: | $this->poBoxCountry = $object->poBoxCountry; |
| 127: | } |
| 128: | if (property_exists($object, 'poBoxLocation')) { |
| 129: | $this->poBoxLocation = $object->poBoxLocation; |
| 130: | } |
| 131: | if (property_exists($object, 'poBoxNumber')) { |
| 132: | $this->poBoxNumber = $object->poBoxNumber; |
| 133: | } |
| 134: | if (property_exists($object, 'poBoxZip')) { |
| 135: | $this->poBoxZip = $object->poBoxZip; |
| 136: | } |
| 137: | if (property_exists($object, 'routingBic')) { |
| 138: | $this->routingBic = $object->routingBic; |
| 139: | } |
| 140: | if (property_exists($object, 'services')) { |
| 141: | $this->services = $object->services; |
| 142: | } |
| 143: | return $this; |
| 144: | } |
| 145: | } |
| 146: | |