RegistryHandler::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace XoopsModules\Pedigree;
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
 * Module: Pedigree
17
 *
18
 * @category        Module
19
 * @package         pedigree
20
 * @author          XOOPS Development Team <https://xoops.org>
21
 * @copyright       {@link https://xoops.org/ XOOPS Project}
22
 * @license         GPL 2.0 or later
23
 * @link            https://xoops.org/
24
 * @since           1.0.0
25
 */
26
27
use Xmf\Module\Helper\Permission;
28
use XoopsDatabase;
29
use XoopsModules\Pedigree;
30
use XoopsPersistableObjectHandler;
31
32
$moduleDirName = \basename(\dirname(__DIR__));
33
34
$permHelper = new Permission();
35
36
/**
37
 * Class RegistryHandler
38
 */
39
class RegistryHandler extends XoopsPersistableObjectHandler
40
{
41
    /**
42
     * Constructor
43
     * @param null|\XoopsDatabase $db
44
     */
45
    public function __construct(XoopsDatabase $db = null)
46
    {
47
        parent::__construct($db, 'pedigree_registry', Registry::class, 'id', 'pname');
48
    }
49
}
50