Completed
Pull Request — master (#618)
by Richard
16:17
created

Smilies::getInstance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
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
/**
13
 * @copyright       XOOPS Project (http://xoops.org)
14
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15
 * @author          trabis <[email protected]>
16
 * @version         $Id$
17
 */
18
19
class Smilies extends Xoops\Module\Helper\HelperAbstract
20
{
21
    /**
22
     * Init the module
23
     *
24
     * @return null|void
25
     */
26
    public function init()
27
    {
28
        $this->setDirname('smilies');
29
    }
30
31
    /**
32
     * @return SmiliesSmileyHandler
33
     */
34
    public function getHandlerSmilies()
35
    {
36
        return $this->getHandler('smiley');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getHandler('smiley') returns the type XoopsObjectHandler|XoopsPersistableObjectHandler which is incompatible with the documented return type SmiliesSmileyHandler.
Loading history...
37
    }
38
}
39