Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ConversionStatus | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
jsonSerialize | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Models; |
4 | |
5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
6 | use Illuminate\Database\Eloquent\Model; |
7 | use Illuminate\Database\Eloquent\Relations\HasOne; |
8 | use Illuminate\Database\Eloquent\Relations\HasMany; |
9 | use Illuminate\Database\Eloquent\Relations\BelongsTo; |
10 | use Illuminate\Database\Eloquent\Relations\BelongsToMany; |
11 | |
12 | class ConversionStatus extends Model |
13 | { |
14 | use HasFactory; |
15 | |
16 | protected $table = "conversion_statuses"; |
17 | |
18 | /** |
19 | * Serialization |
20 | */ |
21 | public function jsonSerialize() |
22 | { |
23 | return [ |
24 | 'id' => $this->id, |
25 | 'name' => $this->name, |
26 | ]; |
27 | } // jsonSerialize |
28 | } |