1 | <?php |
||
20 | class AccountingData |
||
21 | { |
||
22 | |||
23 | |||
24 | |||
25 | public function _construct(){ |
||
28 | |||
29 | /** |
||
30 | * Get sum of total income |
||
31 | */ |
||
32 | public function total_sum_Income() : int |
||
36 | |||
37 | |||
38 | /** |
||
39 | * @param int $category |
||
40 | * @return int |
||
41 | * function gets sum of an income by a given category .. |
||
42 | */ |
||
43 | public function sumOfIncomeByCategory(int $category) : int |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @param int $category |
||
51 | * @return int |
||
52 | * function gets sum of an expense by a given category .. |
||
53 | */ |
||
54 | public function sumOfExpenseByCategory(int $category) : int |
||
58 | |||
59 | /** |
||
60 | * @return int |
||
61 | * |
||
62 | * function gets the total income for the current month |
||
63 | */ |
||
64 | public function total_sum_of_income_this_month() : int |
||
68 | |||
69 | /** |
||
70 | * @return int |
||
71 | * function that gets the total_sum_of_all_expense |
||
72 | */ |
||
73 | public function total_sum_Expense() :int |
||
77 | |||
78 | /** |
||
79 | * @return int |
||
80 | * function that gets total expense for the current month |
||
81 | */ |
||
82 | public function totalExpenseThisMonth() : int |
||
86 | |||
87 | |||
88 | /** |
||
89 | * @return int |
||
90 | * function that gets totalincome of the current year |
||
91 | */ |
||
92 | public function totalIncomeThisYear() : int |
||
96 | |||
97 | /** |
||
98 | * @return int |
||
99 | * |
||
100 | *sum_of_total_income_last_year |
||
101 | */ |
||
102 | public function sum_of_total_income_last_year() : int |
||
109 | |||
110 | /** |
||
111 | * @return int |
||
112 | * |
||
113 | * sum_of_total_income_last_month |
||
114 | */ |
||
115 | |||
116 | public function sum_of_total_income_last_month() : int |
||
123 | |||
124 | |||
125 | /** |
||
126 | * @return int |
||
127 | * |
||
128 | * function that |
||
129 | */ |
||
130 | public function sum_of_expense_this_year() : int |
||
134 | |||
135 | |||
136 | public function getExpenseCategories() |
||
140 | |||
141 | |||
142 | |||
143 | public function getIncomeCategories() |
||
147 | |||
148 | |||
149 | |||
150 | public function getIncomeById($incomeid){ |
||
154 | |||
155 | |||
156 | public function getExpenseById($expenseid){ |
||
160 | |||
161 | public function getAllExpenses(){ |
||
165 | |||
166 | |||
167 | |||
168 | public function getAllIncomes(){ |
||
172 | |||
173 | |||
174 | |||
175 | } |
||
176 |