1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | namespace NxSys\Library\Clients\Brex\API\Team\Model; |
12: | |
13: | class SpendControlUpdateRequest 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 $spendLimit; |
28: | |
29: | |
30: | |
31: | protected $spendDuration; |
32: | |
33: | |
34: | |
35: | protected $reason; |
36: | |
37: | |
38: | |
39: | protected $lockAfterDate; |
40: | |
41: | public function getSpendLimit(): SpendControlUpdateRequestSpendLimit |
42: | { |
43: | return $this->spendLimit; |
44: | } |
45: | |
46: | public function setSpendLimit(SpendControlUpdateRequestSpendLimit $spendLimit): self |
47: | { |
48: | $this->initialized['spendLimit'] = true; |
49: | $this->spendLimit = $spendLimit; |
50: | |
51: | return $this; |
52: | } |
53: | |
54: | public function getSpendDuration(): string |
55: | { |
56: | return $this->spendDuration; |
57: | } |
58: | |
59: | public function setSpendDuration(string $spendDuration): self |
60: | { |
61: | $this->initialized['spendDuration'] = true; |
62: | $this->spendDuration = $spendDuration; |
63: | |
64: | return $this; |
65: | } |
66: | |
67: | public function getReason(): ?string |
68: | { |
69: | return $this->reason; |
70: | } |
71: | |
72: | public function setReason(?string $reason): self |
73: | { |
74: | $this->initialized['reason'] = true; |
75: | $this->reason = $reason; |
76: | |
77: | return $this; |
78: | } |
79: | |
80: | public function getLockAfterDate(): ?\DateTime |
81: | { |
82: | return $this->lockAfterDate; |
83: | } |
84: | |
85: | public function setLockAfterDate(?\DateTime $lockAfterDate): self |
86: | { |
87: | $this->initialized['lockAfterDate'] = true; |
88: | $this->lockAfterDate = $lockAfterDate; |
89: | |
90: | return $this; |
91: | } |
92: | } |
93: | |