PartHandler   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 namespace XoopsModules\Cardealer;
2
3
/*
4
 You may not change or alter any portion of this comment or credits
5
 of supporting developers from this source code or any supporting source code
6
 which is considered copyrighted (c) material of the original comment or credit authors.
7
8
 This program is distributed in the hope that it will be useful,
9
 but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
*/
12
13
/**
14
 * Module: cardealer
15
 *
16
 * @category        Module
17
 * @package         cardealer
18
 * @author          XOOPS Development Team <[email protected]> - <https://xoops.org>
19
 * @copyright       {@link https://xoops.org/ XOOPS Project}
20
 * @license         GPL 2.0 or later
21
 * @link            https://xoops.org/
22
 * @since           1.0.0
23
 */
24
25
use XoopsModules\Cardealer;
26
27
$moduleDirName = basename(dirname(__DIR__));
28
29
$permHelper = new \Xmf\Module\Helper\Permission();
30
31
/**
32
 * Class PartHandler
33
 */
34
class PartHandler extends \XoopsPersistableObjectHandler
35
{
36
    /**
37
     * Constructor
38
     * @param null|\XoopsDatabase $db
39
     */
40
41
    public function __construct(\XoopsDatabase $db)
42
    {
43
        parent::__construct($db, 'cardealer_part', Part::class, 'partnum', 'title');
44
    }
45
}
46