Completed
Push — master ( 2f6fab...c5b9c9 )
by Goffy
11s queued 10s
created

XoopsBlockHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 7
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
2
3
namespace XoopsModules\Tools;
4
5
use XoopsDatabase;
6
use XoopsPersistableObjectHandler;
7
8
/**
9
 * tools Module for XOOPS
10
 *
11
 * You may not change or alter any portion of this comment or credits
12
 * of supporting developers from this source code or any supporting source code
13
 * which is considered copyrighted (c) material of the original comment or credit authors.
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
 *
18
 * @copyright       XOOPS Project (https://xoops.org)
19
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
20
 * @package         tools
21
 * @since           2.00
22
 * @author          Susheng Yang <[email protected]>
23
 */
24
class XoopsBlockHandler extends XoopsPersistableObjectHandler
25
{
26
    public function __construct(XoopsDatabase $db)
27
    {
28
        parent::__construct($db, 'newblocks', XoopsBlock::class, 'bid', 'name');
29
    }
30
}
31