| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | namespace NxSys\Library\Clients\Brex\API\Payments\Model; |
| 12: | |
| 13: | class ChequeDetailsResponse extends \ArrayObject |
| 14: | { |
| 15: | |
| 16: | |
| 17: | |
| 18: | protected $initialized = []; |
| 19: | |
| 20: | public function isInitialized($property): bool |
| 21: | { |
| 22: | return array_key_exists($property, $this->initialized); |
| 23: | } |
| 24: | |
| 25: | |
| 26: | |
| 27: | protected $type; |
| 28: | |
| 29: | |
| 30: | |
| 31: | |
| 32: | |
| 33: | protected $paymentInstrumentId; |
| 34: | |
| 35: | |
| 36: | |
| 37: | |
| 38: | |
| 39: | protected $mailingAddress; |
| 40: | |
| 41: | |
| 42: | |
| 43: | protected $recipientName; |
| 44: | |
| 45: | public function getType(): string |
| 46: | { |
| 47: | return $this->type; |
| 48: | } |
| 49: | |
| 50: | public function setType(string $type): self |
| 51: | { |
| 52: | $this->initialized['type'] = true; |
| 53: | $this->type = $type; |
| 54: | |
| 55: | return $this; |
| 56: | } |
| 57: | |
| 58: | |
| 59: | |
| 60: | |
| 61: | |
| 62: | public function getPaymentInstrumentId(): string |
| 63: | { |
| 64: | return $this->paymentInstrumentId; |
| 65: | } |
| 66: | |
| 67: | |
| 68: | |
| 69: | |
| 70: | |
| 71: | public function setPaymentInstrumentId(string $paymentInstrumentId): self |
| 72: | { |
| 73: | $this->initialized['paymentInstrumentId'] = true; |
| 74: | $this->paymentInstrumentId = $paymentInstrumentId; |
| 75: | |
| 76: | return $this; |
| 77: | } |
| 78: | |
| 79: | |
| 80: | |
| 81: | |
| 82: | public function getMailingAddress(): Address |
| 83: | { |
| 84: | return $this->mailingAddress; |
| 85: | } |
| 86: | |
| 87: | |
| 88: | |
| 89: | |
| 90: | public function setMailingAddress(Address $mailingAddress): self |
| 91: | { |
| 92: | $this->initialized['mailingAddress'] = true; |
| 93: | $this->mailingAddress = $mailingAddress; |
| 94: | |
| 95: | return $this; |
| 96: | } |
| 97: | |
| 98: | public function getRecipientName(): string |
| 99: | { |
| 100: | return $this->recipientName; |
| 101: | } |
| 102: | |
| 103: | public function setRecipientName(string $recipientName): self |
| 104: | { |
| 105: | $this->initialized['recipientName'] = true; |
| 106: | $this->recipientName = $recipientName; |
| 107: | |
| 108: | return $this; |
| 109: | } |
| 110: | } |
| 111: | |