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

Grantable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSecretName() 0 4 1
A getIdentificationKey() 0 4 1
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