Completed
Pull Request — master (#31)
by
unknown
09:01
created

Initer::getTree()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 3
Bugs 1 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 3
b 1
f 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
    public function getTree()
26
    {
27
        return include __DIR__ . '/files/source/tree.php';
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getMetadata()
34
    {
35
        return include __DIR__ . '/files/source/metadata.php';
36
    }
37
}
38