Passed
Pull Request — main (#32)
by Tan
04:56 queued 02:23
created

MetaBox::getBaseModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CSlant\Blog\Core\Models;
4
5
use AllowDynamicProperties;
6
use Carbon\Carbon;
7
use CSlant\Blog\Core\Models\Base\BaseMetaBox;
8
use Illuminate\Database\Eloquent\Builder;
9
10
/**
11
 * Class MetaBox
12
 *
13
 * @package CSlant\Blog\Core\Models
14
 *
15
 * @property int $id
16
 * @property string $meta_key
17
 * @property string $meta_value
18
 * @property int $reference_id
19
 * @property string $reference_type
20
 * @property Carbon $created_at
21
 * @property Carbon $updated_at
22
 *
23
 * @method static Builder|MetaBox newModelQuery()
24
 * @method static Builder|MetaBox newQuery()
25
 * @method static Builder|MetaBox query()
26
 * @method static Builder|MetaBox first()
27
 * @method static Builder|MetaBox find($id)
28
 * @method static Builder|MetaBox with($relations)
29
 * @method static Builder|MetaBox whereId($value)
30
 * @method static Builder|MetaBox whereIn($column, $values)
31
 * @method static Builder|MetaBox where($column, $operator = null, $value = null, $boolean = 'and')
32
 * @method static MetaBox findOrFail($id)
33
 * @method static MetaBox create($data)
34
 *
35
 * @mixin BaseMetaBox
36
 */
37
#[AllowDynamicProperties]
38
class MetaBox extends BaseMetaBox
39
{
40
    protected $fillable = [
41
        'meta_key',
42
        'meta_value',
43
        'reference_id',
44
        'reference_type',
45
    ];
46
47
    public static function getBaseModel(): string
48
    {
49
        return 'Botble\Base\Models\MetaBox';
50
    }
51
}
52