Total Complexity | 5 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class RoleManager extends ApplicationProvider implements RoleInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $adapter = 'Database'; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $resource = 'Resta\\Role\\Resource'; |
||
18 | |||
19 | /** |
||
20 | * passing directly |
||
21 | * |
||
22 | * @return bool |
||
23 | */ |
||
24 | public function directly() |
||
25 | { |
||
26 | return true; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * get resource path |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getAdapter() |
||
35 | { |
||
36 | return $this->adapter; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * get resource path |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getResource() |
||
45 | { |
||
46 | return $this->resource; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * set adapter name |
||
51 | * |
||
52 | * @param string $adapter |
||
53 | * @return RoleManager |
||
54 | */ |
||
55 | public function setAdapter($adapter='Database') |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * set resource path |
||
64 | * |
||
65 | * @param $resource |
||
66 | * @return void |
||
67 | */ |
||
68 | public function setResource($resource) |
||
71 | } |
||
72 | } |