-
Notifications
You must be signed in to change notification settings - Fork 5
/
_ide_helper_models.php
162 lines (153 loc) · 6.46 KB
/
_ide_helper_models.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
/**
* An helper file for your Eloquent Models
* Copy the phpDocs from this file to the correct Model,
* And remove them from this file, to prevent double declarations.
*
* @author Barry vd. Heuvel <[email protected]>
*/
namespace {
/**
* An Eloquent Model: 'Account'
*
* @property integer $id
* @property integer $user_id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property string $name
* @property float $openingbalance
* @property string $openingbalancedate
* @property float $currentbalance
* @property boolean $hidden
* @property-read \User $user
* @property-read \Illuminate\Database\Eloquent\Collection|\Transfer[] $transfersto
* @property-read \Illuminate\Database\Eloquent\Collection|\Transfer[] $transfersfrom
* @property-read \Illuminate\Database\Eloquent\Collection|\Balancemodifier[] $balancemodifiers
* @property-read \Illuminate\Database\Eloquent\Collection|\Transaction[] $transactions
* @method static Account notHidden()
*/
class Account {}
}
namespace {
/**
* An Eloquent Model: 'Balancemodifier'
*
* @property integer $id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property integer $account_id
* @property string $date
* @property float $balance
* @property string $balance_encrypted
* @property-read \Account $account
* @method static Balancemodifier onDay($date)
* @method static Balancemodifier beforeDay($date)
*/
class Balancemodifier {}
}
namespace {
/**
* An Eloquent Model: 'Component'
*
* @property integer $id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property \Carbon\Carbon $deleted_at
* @property integer $parent_component_id
* @property string $type
* @property string $name
* @property integer $user_id
* @property-read \Component $parentComponent
* @property-read \Illuminate\Database\Eloquent\Collection|\Component[] $childrenComponents
* @property-read \Illuminate\Database\Eloquent\Collection|\Limit[] $limits
* @property-read \Illuminate\Database\Eloquent\Collection|\Transaction[] $transactions
* @property-read \User $user
*/
class Component {}
}
namespace {
/**
* An Eloquent Model: 'limit'
*
* @property integer $id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property \Carbon\Carbon $deleted_at
* @property integer $component_id
* @property float $amount
* @property string $date
* @property-read \Component $component
* @method static limit inMonth($date)
*/
class Limit {}
}
namespace {
/**
* An Eloquent Model: 'Transaction'
*
* @property integer $id
* @property integer $user_id
* @property integer $account_id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property string $description
* @property float $amount
* @property string $date
* @property boolean $ignore
* @property boolean $mark
* @property integer $beneficiary_idX
* @property integer $budget_idX
* @property integer $category_idX
* @property boolean $assigned
* @property-read \Account $account
* @property-read \Illuminate\Database\Eloquent\Collection|\Component[] $components
* @property-read \User $user
* @method static Transaction inMonth($date)
* @method static Transaction onDay($date)
* @method static Transaction onDayOfMonth($date)
* @method static Transaction betweenDates($start, $end)
* @method static Transaction expenses()
* @method static Transaction incomes()
* @method static Transaction hasComponent($component)
*/
class Transaction {}
}
namespace {
/**
* An Eloquent Model: 'Transfer'
*
* @property integer $id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property integer $user_id
* @property integer $accountfrom_id
* @property integer $accountto_id
* @property string $description
* @property float $amount
* @property string $date
* @property-read \Account $accountfrom
* @property-read \Account $accountto
* @property-read \User $user
* @method static Transfer inMonth($date)
*/
class Transfer {}
}
namespace {
/**
* An Eloquent Model: 'User'
*
* @property integer $id
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property \Carbon\Carbon $deleted_at
* @property string $email
* @property string $password
* @property string $activation
* @property string $reset
* @property-read \Illuminate\Database\Eloquent\Collection|\Account[] $accounts
* @property-read \Illuminate\Database\Eloquent\Collection|\Component[] $components
* @property-read \Illuminate\Database\Eloquent\Collection|\Transaction[] $transactions
* @property-read \Illuminate\Database\Eloquent\Collection|\Transfer[] $transfers
*/
class User {}
}