Completed
Pull Request — master (#491)
by Richard
10:43
created

Divider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
rs 10
ccs 4
cts 4
cp 1
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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\Html\Menu;
13
14
/**
15
 * Link - a menu link
16
 *
17
 * @category  Xoops\Html\Menu
18
 * @package   Link
19
 * @author    Richard Griffith <[email protected]>
20
 * @copyright 2016 XOOPS Project (http://xoops.org)
21
 * @license   GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
22
 * @link      http://xoops.org
23
 */
24
class Divider extends Item
25
{
26
    /**
27
     * __construct
28
     *
29
     * @param array $attributes array of attribute name => value pairs
30
     *
31
     * Expected attributes: none
32
     */
33 1
    public function __construct($attributes = array())
34
    {
35 1
        parent::__construct($attributes);
36 1
        $this->set('type', Item::TYPE_DIVIDER);
37 1
    }
38
}
39