Flags   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A tableName() 0 3 1
1
<?php
2
/**
3
 * Cache Flag plugin for Craft CMS 3.x
4
 *
5
 * Flag and clear template caches.
6
 *
7
 * @link      https://vaersaagod.no
8
 * @copyright Copyright (c) 2018 Mats Mikkel Rummelhoff
9
 */
10
11
namespace mmikkel\cacheflag\records;
12
13
use craft\db\ActiveRecord;
14
15
/**
16
 * @property int $id
17
 *
18
 * @author    Mats Mikkel Rummelhoff
19
 * @package   CacheFlag
20
 * @since     1.0.0
21
 */
22
class Flags extends ActiveRecord
23
{
24
25
    /** @var string|null */
26
    public ?string $flags;
27
28
    /** @var int|null */
29
    public ?int $sectionId;
30
31
    /** @var int|null */
32
    public ?int $categoryGroupId;
33
34
    /** @var int|null */
35
    public ?int $tagGroupId;
36
37
    /** @var int|null */
38
    public ?int $userGroupId;
39
40
    /** @var int|null */
41
    public ?int $volumeId;
42
43
    /** @var int|null */
44
    public ?int $globalSetId;
45
46
    /** @var string|null */
47
    public ?string $elementType;
48
49
    // Public Static Methods
50
    // =========================================================================
51
52
    /**
53
     * @inheritdoc
54
     */
55
    public static function tableName(): string
56
    {
57
        return '{{%cacheflag_flags}}';
58
    }
59
}
60