1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | namespace NxSys\Library\Clients\Brex\API\Budgets\Model; |
12: | |
13: | class BudgetCurrentPeriodBalance 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 $startDate; |
28: | |
29: | |
30: | |
31: | protected $endDate; |
32: | |
33: | |
34: | |
35: | protected $balance; |
36: | |
37: | public function getStartDate(): ?\DateTime |
38: | { |
39: | return $this->startDate; |
40: | } |
41: | |
42: | public function setStartDate(?\DateTime $startDate): self |
43: | { |
44: | $this->initialized['startDate'] = true; |
45: | $this->startDate = $startDate; |
46: | |
47: | return $this; |
48: | } |
49: | |
50: | public function getEndDate(): ?\DateTime |
51: | { |
52: | return $this->endDate; |
53: | } |
54: | |
55: | public function setEndDate(?\DateTime $endDate): self |
56: | { |
57: | $this->initialized['endDate'] = true; |
58: | $this->endDate = $endDate; |
59: | |
60: | return $this; |
61: | } |
62: | |
63: | public function getBalance(): BudgetPeriodBalanceBalance |
64: | { |
65: | return $this->balance; |
66: | } |
67: | |
68: | public function setBalance(BudgetPeriodBalanceBalance $balance): self |
69: | { |
70: | $this->initialized['balance'] = true; |
71: | $this->balance = $balance; |
72: | |
73: | return $this; |
74: | } |
75: | } |
76: | |