CategoryHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

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