Passed
Push — master ( 6af1fb...f5fe55 )
by Michael
02:53 queued 10s
created

ItemvotedataHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace XoopsModules\Adslight;
6
7
/*
8
 You may not change or alter any portion of this comment or credits
9
 of supporting developers from this source code or any supporting source code
10
 which is considered copyrighted (c) material of the original comment or credit authors.
11
12
 This program is distributed in the hope that it will be useful,
13
 but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
*/
16
17
use Xmf\Module\Helper\Permission;
18
19
/**
20
 * Module: Adslight
21
 *
22
 * @category        Module
23
 * @package         adslight
24
 * @author          XOOPS Development Team <https://xoops.org>
25
 * @copyright       {@link https://xoops.org/ XOOPS Project}
26
 * @license         GPL 2.0 or later
27
 * @link            https://xoops.org/
28
 * @since           1.0.0
29
 */
30
31
$moduleDirName = \basename(\dirname(__DIR__));
32
$permHelper    = new Permission();
33
34
/**
35
 * Class ItemvotedataHandler
36
 */
37
class ItemvotedataHandler extends \XoopsPersistableObjectHandler
38
{
39
    /**
40
     * Constructor
41
     * @param \XoopsDatabase|null $xoopsDatabase
42
     */
43
    public function __construct(?\XoopsDatabase $xoopsDatabase = null)
44
    {
45
        parent::__construct($xoopsDatabase, 'adslight_item_votedata', Itemvotedata::class, 'ratingid', 'ratingid');
46
    }
47
}
48