Passed
Push — master ( 3a2152...658ebb )
by Goffy
04:30 queued 12s
created

EntriesHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace XoopsModules\Lexikon;
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
use Xmf\Module\Helper\Permission;
16
17
/**
18
 * Module: lexikon
19
 *
20
 * @category        Module
21
 * @package         lexikon
22
 * @author          XOOPS Development Team <[email protected]> - <https://xoops.org>
23
 * @copyright       {@link https://xoops.org/ XOOPS Project}
24
 * @license         GPL 2.0 or later
25
 * @link            https://xoops.org/
26
 * @since           1.0.0
27
 */
28
$moduleDirName = \basename(\dirname(__DIR__));
29
30
$permHelper = new Permission($moduleDirName);
31
32
/**
33
 * Class LexikonEntriesHandler
34
 */
35
class EntriesHandler extends \XoopsPersistableObjectHandler
36
{
37
    /**
38
     * Constructor
39
     * @param null|\XoopsDatabase $db
40
     */
41
    public function __construct(\XoopsDatabase $db = null)
42
    {
43
        parent::__construct($db, 'lxentries', Entries::class, 'entryID', 'term');
44
    }
45
}
46