Completed
Pull Request — master (#554)
by Richard
06:59
created

XoopsBlockModuleLinkHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 1
dl 0
loc 10
ccs 8
cts 8
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
namespace Xoops\Core\Kernel\Handlers;
13
14
use Xoops\Core\Database\Connection;
15
use Xoops\Core\Kernel\XoopsPersistableObjectHandler;
16
17
/**
18
 * XOOPS Kernel Class
19
 *
20
 * @category  Xoops\Core\Kernel\Handlers\XoopsBlockModuleLinkHandler
21
 * @package   Xoops\Core\Kernel
22
 * @author    Gregory Mage (AKA Mage)
23
 * @author    trabis <[email protected]>
24
 * @copyright 2000-2015 XOOPS Project (http://xoops.org)
25
 * @license   GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
26
 * @link      http://xoops.org
27
 */
28
class XoopsBlockModuleLinkHandler extends XoopsPersistableObjectHandler
29
{
30
    /**
31
     * __construct
32
     *
33
     * @param null|Connection $db database
34
     */
35 4
    public function __construct(Connection $db = null)
36
    {
37 4
        parent::__construct(
38 4
            $db,
39 4
            'system_blockmodule',
40 4
            '\Xoops\Core\Kernel\Handlers\XoopsBlockModuleLink',
41 4
            'block_id',
42 4
            'module_id'
43
        );
44 4
    }
45
}
46