CategoryHandler::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace XoopsModules\Countdown;
6
7
/*
8
 You may not change or alter any portion of this comment or credits
9
 of supporting developers from this source code or any supporting source code
10
 which is considered copyrighted (c) material of the original comment or credit authors.
11
12
 This program is distributed in the hope that it will be useful,
13
 but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
*/
16
17
/**
18
 * Module: Countdown
19
 *
20
 * @category        Module
21
 * @package         countdown
22
 * @author          XOOPS Development Team <https://xoops.org>
23
 * @copyright       {@link https://xoops.org/ XOOPS Project}
24
 * @license         GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
25
 * @link            https://xoops.org/
26
 * @since           1.0.0
27
 */
28
29
use XoopsModules\Countdown;
30
31
$moduleDirName = basename(dirname(__DIR__));
32
33
$permHelper = new \Xmf\Module\Helper\Permission();
34
35
/**
36
 * Class CategoryHandler
37
 */
38
class CategoryHandler extends \XoopsPersistableObjectHandler
39
{
40
    /**
41
     * Constructor
42
     * @param null|\XoopsDatabase $db
43
     */
44
45
    public function __construct(\XoopsDatabase $db)
46
    {
47
        parent::__construct($db, 'countdown_categories', Category::class, 'category_id', 'category_title');
48
    }
49
}
50