-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ide_helper_models.php
186 lines (177 loc) · 8.58 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?php
// @formatter:off
/**
* A 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 App\Models{
/**
* App\Models\Category
*
* @property int $id
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Poll[] $polls
* @property-read int|null $polls_count
* @method static \Database\Factories\CategoryFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category query()
* @method static \Illuminate\Database\Eloquent\Builder|Category whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereUpdatedAt($value)
*/
class IdeHelperCategory {}
}
namespace App\Models{
/**
* App\Models\Comment
*
* @property int $id
* @property int $user_id
* @property int $poll_id
* @property int $status_id
* @property string $body
* @property int $spam_reports
* @property bool $is_status_update
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Poll $poll
* @property-read \App\Models\Status $status
* @property-read \App\Models\User $user
* @method static \Database\Factories\CommentFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Comment newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Comment newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Comment query()
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereBody($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereIsStatusUpdate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment wherePollId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereSpamReports($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereStatusId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereUserId($value)
*/
class IdeHelperComment {}
}
namespace App\Models{
/**
* App\Models\Poll
*
* @property int $id
* @property int $category_id
* @property int $status_id
* @property string $title
* @property string|null $slug
* @property string $description
* @property int $votes_yes
* @property int $votes_no
* @property \Illuminate\Support\Carbon|null $ends_at
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Category $category
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Comment[] $comments
* @property-read int|null $comments_count
* @property-read \App\Models\Status $status
* @property-read \App\Models\User $user
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $votes
* @property-read int|null $votes_count
* @method static \Database\Factories\PollFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Poll findSimilarSlugs(string $attribute, array $config, string $slug)
* @method static \Illuminate\Database\Eloquent\Builder|Poll newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Poll newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Poll query()
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereCategoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereEndsAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereStatusId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereVotesNo($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll whereVotesYes($value)
* @method static \Illuminate\Database\Eloquent\Builder|Poll withUniqueSlugConstraints(\Illuminate\Database\Eloquent\Model $model, string $attribute, array $config, string $slug)
*/
class IdeHelperPoll {}
}
namespace App\Models{
/**
* App\Models\Status
*
* @property int $id
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Poll[] $polls
* @property-read int|null $polls_count
* @method static \Database\Factories\StatusFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Status newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Status newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Status query()
* @method static \Illuminate\Database\Eloquent\Builder|Status whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Status whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Status whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Status whereUpdatedAt($value)
*/
class IdeHelperStatus {}
}
namespace App\Models{
/**
* App\Models\User
*
* @property int $id
* @property string $slack_id
* @property string|null $name
* @property string|null $nickname
* @property string|null $avatar
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Comment[] $comments
* @property-read int|null $comments_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Poll[] $polls
* @property-read int|null $polls_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Poll[] $votes
* @property-read int|null $votes_count
* @method static \Database\Factories\UserFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User query()
* @method static \Illuminate\Database\Eloquent\Builder|User whereAvatar($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereNickname($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereSlackId($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
*/
class IdeHelperUser {}
}
namespace App\Models{
/**
* App\Models\Vote
*
* @property int $id
* @property int $poll_id
* @property int $user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Database\Factories\VoteFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Vote newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Vote newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Vote query()
* @method static \Illuminate\Database\Eloquent\Builder|Vote whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Vote whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Vote wherePollId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Vote whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Vote whereUserId($value)
*/
class IdeHelperVote {}
}