NewsStoriesHandler::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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