Completed
Push — develop ( de93ba...d1354f )
by Enea
05:07
created

Grantable::grantableBySecretName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created on 11/02/18 by enea dhack.
4
 */
5
6
namespace Enea\Authorization\Traits;
7
8
/**
9
 * Trait Grantable.
10
 *
11
 * @package Enea\Authorization\Traits
12
 *
13
 * @property int id
14
 * @property string secret_name
15
 */
16
trait Grantable
17
{
18
    use Model;
19
20 2
    public function getSecretName(): string
21
    {
22 2
        return $this->secret_name;
23
    }
24
25
    public function getIdentificationKey(): string
26
    {
27
        return $this->getKey();
28
    }
29
}
30