Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Contact | 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 Illuminate\Database\Eloquent\Factories\HasFactory; |
| 8 | use Illuminate\Database\Query\Builder as QueryBuilder; |
| 9 | |
| 10 | /** |
| 11 | * @property string|null $dect |
| 12 | * @property string|null $email |
| 13 | * @property string|null $mobile |
| 14 | * |
| 15 | * @method static QueryBuilder|Contact[] whereDect($value) |
| 16 | * @method static QueryBuilder|Contact[] whereEmail($value) |
| 17 | * @method static QueryBuilder|Contact[] whereMobile($value) |
| 18 | */ |
| 19 | class Contact extends HasUserModel |
| 20 | { |
| 21 | use HasFactory; |
| 22 | |
| 23 | /** @var array<string, null> default attributes */ |
| 24 | protected $attributes = [ // phpcs:ignore |
| 25 | 'dect' => null, |
| 26 | 'mobile' => null, |
| 27 | 'email' => null, |
| 28 | ]; |
| 29 | |
| 30 | /** @var string The table associated with the model */ |
| 31 | protected $table = 'users_contact'; // phpcs:ignore |
| 32 | |
| 33 | /** |
| 34 | * The attributes that are mass assignable |
| 35 | * |
| 36 | * @var array<string> |
| 37 | */ |
| 38 | protected $fillable = [ // phpcs:ignore |
| 39 | 'user_id', |
| 40 | 'dect', |
| 41 | 'email', |
| 42 | 'mobile', |
| 43 | ]; |
| 44 | } |