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

Grantable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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