Completed
Push — master ( 658b35...b781ca )
by Richard
28s queued 23s
created

RatingHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace XoopsModules\Publisher;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
 */
14
15
use Xoops\Core\Database\Connection;
16
use Xoops\Core\Kernel\XoopsPersistableObjectHandler;
17
18
/**
19
 *  Publisher class
20
 *
21
 * @copyright       The XUUPS Project http://sourceforge.net/projects/xuups/
22
 * @license         GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
23
 * @package         Publisher
24
 * @since           1.0
25
 * @author          trabis <[email protected]>
26
 * @version         $Id$
27
 */
28
require_once \dirname(__DIR__) . '/include/common.php';
29
30
/**
31
 * Class RatingHandler
32
 * @package XoopsModules\Publisher
33
 */
34
class RatingHandler extends XoopsPersistableObjectHandler
35
{
36
    /**
37
     * @param \Xoops\Core\Database\Connection $db
38
     */
39
    public function __construct(Connection $db = null)
40
    {
41
        parent::__construct($db, 'publisher_rating', Rating::class, 'ratingid', 'itemid');
42
    }
43
}
44