Initer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 11
Bugs 2 Features 1
Metric Value
eloc 3
c 11
b 2
f 1
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMetadata() 0 3 1
A getTree() 0 3 1
1
<?php
2
/**
3
 * RBAC implementation for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-rbac
6
 * @package   hipanel-rbac
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2020, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\rbac;
12
13
/**
14
 * Initer for AuthManager.
15
 *
16
 * Non-obvious permissions:
17
 * - have-goods - permission to have anything, inherent to clients and resellers only.
18
 *   Serfvice staff (supports, managers) can't have anything.
19
 * - see-no-mans - see no man's objects - not belonging to anybody
20
 *
21
 * @author Andrii Vasyliev <[email protected]>
22
 */
23
class Initer extends AbstractIniter
24
{
25 1
    public function getTree()
26
    {
27 1
        return include __DIR__ . '/files/source/tree.php';
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33 1
    public function getMetadata()
34
    {
35 1
        return include __DIR__ . '/files/source/metadata.php';
36
    }
37
}
38