Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Plugin | 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; |
| 6 | |
| 7 | use Illuminate\Database\Eloquent\Builder; |
| 8 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 9 | |
| 10 | /** |
| 11 | * @property int $id |
| 12 | * @property string $name |
| 13 | * @property bool $enabled |
| 14 | * @property string $version |
| 15 | * |
| 16 | * @method static Builder|Plugin[] whereId($value) |
| 17 | * @method static Builder|Plugin[] whereName($value) |
| 18 | * @method static Builder|Plugin[] whereEnabled($value) |
| 19 | * @method static Builder|Plugin[] whereVersion($value) |
| 20 | */ |
| 21 | class Plugin extends BaseModel |
| 22 | { |
| 23 | use HasFactory; |
| 24 | |
| 25 | /** @var array<string, null> default attributes */ |
| 26 | protected $attributes = [ // phpcs:ignore |
| 27 | 'enabled' => false, |
| 28 | 'version' => '0.0.0', |
| 29 | ]; |
| 30 | |
| 31 | /** @var array<string, string> */ |
| 32 | protected $casts = [ // phpcs:ignore |
| 33 | 'enabled' => 'boolean', |
| 34 | ]; |
| 35 | |
| 36 | /** @var string[] */ |
| 37 | protected $fillable = [ // phpcs:ignore |
| 38 | 'name', |
| 39 | 'enabled', |
| 40 | 'version', |
| 41 | ]; |
| 42 | } |