Completed
Push — master ( 86d7d8...3dc8f7 )
by vistart
04:16
created

ManageMemberRule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
1
<?php
2
3
/**
4
 *  _   __ __ _____ _____ ___  ____  _____
5
 * | | / // // ___//_  _//   ||  __||_   _|
6
 * | |/ // /(__  )  / / / /| || |     | |
7
 * |___//_//____/  /_/ /_/ |_||_|     |_|
8
 * @link https://vistart.me/
9
 * @copyright Copyright (c) 2016 - 2017 vistart
10
 * @license https://vistart.me/license/
11
 */
12
13
namespace rhosocial\organization\rbac\rules;
14
15
use rhosocial\user\User;
16
use rhosocial\organization\BaseOrganization;
17
use rhosocial\organization\Organization;
18
use rhosocial\organization\Member;
19
use rhosocial\organization\rbac\permissions\ManageMember;
20
use yii\rbac\Rule;
21
22
/**
23
 * @version 1.0
24
 * @author vistart <[email protected]>
25
 */
26
class ManageMemberRule extends Rule
27
{
28
    public $name = 'canManageMember';
29
    
30
    /**
31
     * Executes the rule.
32
     *
33
     * @param string|User $user the user GUID. This should be either a GUID string representing
34
     * the unique identifier of a user or a User instance. See [[\rhosocial\user\User::guid]].
35
     * @param ManageMember $item
36
     * @param array $params parameters passed to [[CheckAccessInterface::checkAccess()]].
37
     * @return bool a value indicating whether the rule permits the auth item it is associated with.
38
     */
39
    public function execute($user, $item, $params)
40
    {
41
        
42
    }
43
}
44