SshKey::blacklist()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Acquia\Cloud\Api\Response;
4
5
class SshKey extends \Acquia\Rest\Element
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $idColumn = 'id';
11
12
    /**
13
     * @return string
14
     */
15 3
    public function id()
16
    {
17 3
        return $this['id'];
18
    }
19
20
    /**
21
     * @return string
22
     */
23 3
    public function publicKey()
24
    {
25 3
        return $this['ssh_pub_key'];
26
    }
27
28
    /**
29
     * @return string
30
     */
31 3
    public function nickname()
32
    {
33 3
        return $this['nickname'];
34
    }
35
36
    /**
37
     * Indicates whether this key has access to the shell.
38
     *
39
     * @return bool
40
     *   TRUE if this key can access the shell; FALSE otherwise.
41
     */
42 3
    public function shellAccess()
43
    {
44 3
        return $this['shell_access'];
45
    }
46
47
    /**
48
     * Indicates whether this key has access to the VCS repository.
49
     *
50
     * @return bool
51
     *   TRUE if this key can access the VCS repository; FALSE otherwise.
52
     */
53 3
    public function vcsAccess()
54
    {
55 3
        return $this['vcs_access'];
56
    }
57
58
    /**
59
     * Indicates the names of the environments this key does not have access to.
60
     *
61
     * @return string[]
62
     *   An array of environment names this key cannot access.
63
     */
64 3
    public function blacklist()
65
    {
66 3
        return $this['blacklist'];
67
    }
68
}
69