NewsTopicsHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace XoopsModules\News;
4
5
/**
6
 * ****************************************************************************
7
 * - Developers TEAM TDM Xoops - (https://xoops.org)
8
 * ****************************************************************************
9
 *       NEWS - MODULE FOR XOOPS
10
 *        Copyright (c) 2007 - 2011
11
 *       TXMod Xoops (https://www.txmodxoops.org)
12
 *
13
 *  This program is free software; you can redistribute it and/or modify
14
 *  it under the terms of the GNU General Public License as published by
15
 *  the Free Software Foundation; either version 2 of the License, or
16
 *  (at your option) any later version.
17
 *
18
 *  You may not change or alter any portion of this comment or credits
19
 *  of supporting developers from this source code or any supporting
20
 *  source code which is considered copyrighted (c) material of the
21
 *  original comment or credit authors.
22
 *
23
 *  This program is distributed in the hope that it will be useful,
24
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
 *  GNU General Public License for more details.
27
 *
28
 *  ------------------------------------------------------------------------
29
 *
30
 * @copyright       TXMod Xoops (https://www.txmodxoops.org)
31
 * @license         GPL see LICENSE
32
 * @author          TXMod Xoops ([email protected])
33
 *
34
 * Version : 1.67 Tue 2012/02/13 22:29:36 : Timgno Exp $
35
 * ****************************************************************************
36
 */
37
38
/**
39
 * Class newsnews_topicsHandler
40
 */
41
class NewsTopicsHandler extends \XoopsPersistableObjectHandler
42
{
43
    /**
44
     * @param null|\XoopsDatabase $db
45
     */
46
    public function __construct(\XoopsDatabase $db = null)
47
    {
48
        parent::__construct($db, 'news_topics', NewsTopics::class, 'topic_id', 'topic_pid');
49
    }
50
}
51