Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
State | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Models\User; |
6 | |
7 | use Carbon\Carbon; |
8 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
9 | use Illuminate\Database\Query\Builder as QueryBuilder; |
10 | |
11 | /** |
12 | * @property bool $arrived |
13 | * @property Carbon|null $arrival_date |
14 | * @property string|null $user_info |
15 | * @property bool $active |
16 | * @property bool $force_active |
17 | * @property bool $got_goodie |
18 | * @property int $got_voucher |
19 | * |
20 | * @method static QueryBuilder|State[] whereArrived($value) |
21 | * @method static QueryBuilder|State[] whereArrivalDate($value) |
22 | * @method static QueryBuilder|State[] whereUserInfo($value) |
23 | * @method static QueryBuilder|State[] whereActive($value) |
24 | * @method static QueryBuilder|State[] whereForceActive($value) |
25 | * @method static QueryBuilder|State[] whereGotGoodie($value) |
26 | * @method static QueryBuilder|State[] whereGotVoucher($value) |
27 | */ |
28 | class State extends HasUserModel |
29 | { |
30 | use HasFactory; |
31 | |
32 | /** @var string The table associated with the model */ |
33 | protected $table = 'users_state'; // phpcs:ignore |
34 | |
35 | /** @var array<string, bool|int|null> Default attributes */ |
36 | protected $attributes = [ // phpcs:ignore |
37 | 'arrived' => false, |
38 | 'arrival_date' => null, |
39 | 'user_info' => null, |
40 | 'active' => false, |
41 | 'force_active' => false, |
42 | 'got_goodie' => false, |
43 | 'got_voucher' => 0, |
44 | ]; |
45 | |
46 | /** @var array<string, string> */ |
47 | protected $casts = [ // phpcs:ignore |
48 | 'user_id' => 'integer', |
49 | 'arrived' => 'boolean', |
50 | 'arrival_date' => 'datetime', |
51 | 'active' => 'boolean', |
52 | 'force_active' => 'boolean', |
53 | 'got_goodie' => 'boolean', |
54 | 'got_voucher' => 'integer', |
55 | ]; |
56 | |
57 | /** |
58 | * The attributes that are mass assignable. |
59 | * |
60 | * @var array<string> |
61 | */ |
62 | protected $fillable = [ // phpcs:ignore |
63 | 'user_id', |
64 | 'arrived', |
65 | 'arrival_date', |
66 | 'user_info', |
67 | 'active', |
68 | 'force_active', |
69 | 'got_goodie', |
70 | 'got_voucher', |
71 | ]; |
72 | } |