Passed
Push — master ( b6c7fa...abc9a3 )
by Andrii
02:21
created

Initer::getTree()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 3
Bugs 1 Features 1
Metric Value
cc 1
eloc 1
c 3
b 1
f 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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