Tag   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace XoopsModules\Tag;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
15
/**
16
 * XOOPS tag management module
17
 *
18
 * @copyright       {@link https://sourceforge.net/projects/xoops/ The XOOPS Project}
19
 * @license         {@link https://www.fsf.org/copyleft/gpl.html GNU public license}
20
 * @author          Taiwen Jiang <[email protected]>
21
 * @since           1.00
22
 */
23
24
/**
25
 * Class Tag
26
 */
27
class Tag extends \XoopsObject
28
{
29
    /**
30
     * Tag constructor.
31
     */
32
    public function __construct()
33
    {
34
        $this->initVar('tag_id', \XOBJ_DTYPE_INT, null, false);
35
        $this->initVar('tag_term', \XOBJ_DTYPE_TXTBOX, '', true);
36
        $this->initVar('tag_status', \XOBJ_DTYPE_INT, 0);
37
        $this->initVar('tag_count', \XOBJ_DTYPE_INT, 0);
38
    }
39
}
40