EventsHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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 EventsHandler
37
 */
38
class EventsHandler 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_events', Events::class, 'event_id', 'event_name');
48
    }
49
}
50