Completed
Push — master ( 5139b6...b16139 )
by Sebastian
02:13
created

Permission   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 25
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * Linna Framework.
5
 *
6
 * @author Sebastian Rapetti <[email protected]>
7
 * @copyright (c) 2017, Sebastian Rapetti
8
 * @license http://opensource.org/licenses/MIT MIT License
9
 */
10
declare(strict_types=1);
11
12
namespace Linna\Authorization;
13
14
use Linna\DataMapper\DomainObjectAbstract;
15
16
/**
17
 * Permission.
18
 */
19
class Permission extends DomainObjectAbstract
20
{
21
    /**
22
     * @var string Permission name
23
     */
24
    public $name;
25
26
    /**
27
     * @var string Permission description
28
     */
29
    public $description;
30
31
    /**
32
     * @var string Last update
33
     */
34
    public $lastUpdate;
35
36
    /**
37
     * Constructor.
38
     */
39 8
    public function __construct()
40
    {
41 8
        settype($this->objectId, 'integer');
42 8
    }
43
}
44