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

XoopsBlockModuleLinkHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
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