Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Parameter | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
newFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace App\Http\Models; |
4 | |
5 | use database\factories\http\models\ParameterFactory; |
6 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
7 | |
8 | class Parameter extends Moloquent |
9 | { |
10 | use HasFactory; |
11 | |
12 | /** |
13 | * The table associated with the model. |
14 | * |
15 | * @var string |
16 | */ |
17 | protected $table = 'parameters'; |
18 | |
19 | /** |
20 | * The attributes that are mass assignable. |
21 | * |
22 | * @var array |
23 | */ |
24 | protected $fillable = [ |
25 | 'name', |
26 | 'value', |
27 | ]; |
28 | |
29 | protected static function newFactory() |
30 | { |
31 | return ParameterFactory::new(); |
32 | } |
33 | } |