Downlimit::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace XoopsModules\Tdmdownloads;
6
7
/**
8
 * TDMDownload
9
 *
10
 * You may not change or alter any portion of this comment or credits
11
 * of supporting developers from this source code or any supporting source code
12
 * which is considered copyrighted (c) material of the original comment or credit authors.
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
 *
17
 * @copyright   Gregory Mage (Aka Mage) and Hossein Azizabadi (Aka voltan)
18
 * @license     GNU GPL 2 (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
19
 * @author      Gregory Mage (Aka Mage) and Hossein Azizabadi (Aka voltan)
20
 */
21
22
/**
23
 * Class Downlimit
24
 * @package XoopsModules\Tdmdownloads
25
 */
26
class Downlimit extends \XoopsObject
27
{
28
    // constructor
29
    public function __construct()
30
    {
31
        parent::__construct();
32
        $this->initVar('downlimit_id', \XOBJ_DTYPE_INT, null, false, 11);
33
        $this->initVar('downlimit_lid', \XOBJ_DTYPE_INT, null, false, 11);
34
        $this->initVar('downlimit_uid', \XOBJ_DTYPE_INT, null, false, 11);
35
        $this->initVar('downlimit_hostname', \XOBJ_DTYPE_TXTBOX, null, false);
36
        $this->initVar('downlimit_date', \XOBJ_DTYPE_INT, null, false, 10);
37
    }
38
}
39