Completed
Push — master ( 4f1190...3b2a6f )
by Nikolas
03:34
created

NoneAccessControl::isVisible()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace rtens\domin\execution\access;
2
3
use rtens\domin\AccessControl;
4
5
class NoneAccessControl implements AccessControl {
6
7
    /**
8
     * @param string $actionId
9
     * @return boolean
10
     */
11
    public function isVisible($actionId) {
12
        return true;
13
    }
14
15
    /**
16
     * @param string $actionId
17
     * @param mixed[] $parameters indexed by parameter names
18
     * @return boolean
19
     */
20
    public function isExecutionPermitted($actionId, array $parameters) {
21
        return true;
22
    }
23
}