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

Page::getBaseModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
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 CSlant\Blog\Core\Models\Base\BasePage;
7
use Illuminate\Database\Eloquent\Builder;
8
9
/**
10
 * Class Page
11
 *
12
 * @package CSlant\Blog\Core\Models
13
 *
14
 * @property int $id
15
 * @property string $name
16
 * @property string $description
17
 * @property string $content
18
 * @property string $status
19
 * @property string $template
20
 * @property string $image
21
 * @property int $user_id
22
 *
23
 * @method static Builder|Page newModelQuery()
24
 * @method static Builder|Page newQuery()
25
 * @method static Builder|Page query()
26
 * @method static Builder|Page first()
27
 * @method static Builder|Page find($id)
28
 * @method static Builder|Page with($relations)
29
 * @method static Builder|Page whereId($value)
30
 * @method static Builder|Page whereIn($column, $values)
31
 * @method static Builder|Page where($column, $operator = null, $value = null, $boolean = 'and')
32
 * @method static Page findOrFail($id)
33
 * @method static Page create($data)
34
 *
35
 * @mixin BasePage
36
 */
37
#[AllowDynamicProperties]
38
class Page extends BasePage
39
{
40
    public static function getBaseModel(): string
41
    {
42
        return 'Botble\Page\Models\Page';
43
    }
44
}
45