Passed
Push — main ( 59c4ea...59765f )
by Tan
04:28 queued 01:56
created

Page   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBaseModel() 0 3 1
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