Completed
Push — develop ( 741023...325480 )
by Enea
02:01
created

Grantable::getIdentificationKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 13
    public function getSecretName(): string
21
    {
22 13
        return $this->secret_name;
23
    }
24
25 3
    public function getIdentificationKey(): string
26
    {
27 3
        return $this->getKey();
28
    }
29
}
30