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 ChequeDetailsRequest 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 $mailingAddress; |
34: | |
35: | |
36: | |
37: | protected $recipientName; |
38: | |
39: | public function getType(): string |
40: | { |
41: | return $this->type; |
42: | } |
43: | |
44: | public function setType(string $type): self |
45: | { |
46: | $this->initialized['type'] = true; |
47: | $this->type = $type; |
48: | |
49: | return $this; |
50: | } |
51: | |
52: | |
53: | |
54: | |
55: | public function getMailingAddress(): Address |
56: | { |
57: | return $this->mailingAddress; |
58: | } |
59: | |
60: | |
61: | |
62: | |
63: | public function setMailingAddress(Address $mailingAddress): self |
64: | { |
65: | $this->initialized['mailingAddress'] = true; |
66: | $this->mailingAddress = $mailingAddress; |
67: | |
68: | return $this; |
69: | } |
70: | |
71: | public function getRecipientName(): string |
72: | { |
73: | return $this->recipientName; |
74: | } |
75: | |
76: | public function setRecipientName(string $recipientName): self |
77: | { |
78: | $this->initialized['recipientName'] = true; |
79: | $this->recipientName = $recipientName; |
80: | |
81: | return $this; |
82: | } |
83: | } |
84: | |