Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
PersonalData
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Models\User;
6
7use Carbon\Carbon;
8use Illuminate\Database\Eloquent\Factories\HasFactory;
9use Illuminate\Database\Query\Builder as QueryBuilder;
10
11/**
12 * @property string|null $first_name
13 * @property string|null $last_name
14 * @property string|null $pronoun
15 * @property string|null $shirt_size
16 * @property Carbon|null $planned_arrival_date
17 * @property Carbon|null $planned_departure_date
18 *
19 * @method static QueryBuilder|PersonalData[] whereFirstName($value)
20 * @method static QueryBuilder|PersonalData[] whereLastName($value)
21 * @method static QueryBuilder|PersonalData[] wherePronoun($value)
22 * @method static QueryBuilder|PersonalData[] whereShirtSize($value)
23 * @method static QueryBuilder|PersonalData[] wherePlannedArrivalDate($value)
24 * @method static QueryBuilder|PersonalData[] wherePlannedDepartureDate($value)
25 */
26class PersonalData extends HasUserModel
27{
28    use HasFactory;
29
30    /** @var string The table associated with the model */
31    protected $table = 'users_personal_data'; // phpcs:ignore
32
33    /** @var array<string, null> default attributes */
34    protected $attributes = [ // phpcs:ignore
35        'first_name'             => null,
36        'last_name'              => null,
37        'pronoun'                => null,
38        'shirt_size'             => null,
39        'planned_arrival_date'   => null,
40        'planned_departure_date' => null,
41    ];
42
43    /** @var array<string, string> */
44    protected $casts = [ // phpcs:ignore
45        'user_id'                => 'integer',
46        'planned_arrival_date'   => 'datetime',
47        'planned_departure_date' => 'datetime',
48    ];
49
50    /**
51     * The attributes that are mass assignable.
52     *
53     * @var array<string>
54     */
55    protected $fillable = [ // phpcs:ignore
56        'user_id',
57        'first_name',
58        'last_name',
59        'pronoun',
60        'shirt_size',
61        'planned_arrival_date',
62        'planned_departure_date',
63    ];
64}