Completed
Push — master ( 17bcf1...528abf )
by Dmitry
10:53
created

PermissionAwareBuilderTrait::checkPermission()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
4
namespace hiapi\endpoints\Module\Permission;
5
6
trait PermissionAwareBuilderTrait
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $checkPermission = null;
12
13
    public function checkPermission(string $permission)
14
    {
15
        $this->checkPermission = $permission;
16
17
        return $this;
18
    }
19
}
20