Test Setup Failed
Push — master ( dcec01...0415ed )
by Php Easy Api
04:43
created

RoleManager::directly()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Resta\Role;
4
5
use Resta\Foundation\ApplicationProvider;
6
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')
56
    {
57
        $this->adapter = $adapter;
58
59
        return $this;
60
    }
61
62
    /**
63
     * set resource path
64
     *
65
     * @param $resource
66
     * @return void
67
     */
68
    public function setResource($resource)
69
    {
70
        $this->resource = $resource;
71
    }
72
}