AbstractEntity   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getCreatedAt() 0 4 1
A getUpdatedAt() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: christian
5
 * Date: 1/4/17
6
 * Time: 2:34 AM
7
 */
8
9
namespace Veloci\Core\Model;
10
11
12
use DateTime;
13
use Veloci\Core\Entity;
14
use Veloci\Core\EntityIndex;
15
16
/**
17
 * Class AbstractEntity
18
 *
19
 * @package Veloci\Core\Model
20
 */
21
abstract class AbstractEntity implements Entity
22
{
23
    /**
24
     * @var EntityIndex
25
     */
26
    protected $id;
27
28
    /**
29
     * @var DateTime
30
     */
31
    protected $createdAt;
32
33
    /**
34
     * @var DateTime
35
     */
36
    protected $updatedAt;
37
38
    /**
39
     * @return EntityIndex
40
     */
41 7
    public function getId():EntityIndex
42
    {
43 7
        return $this->id;
44
    }
45
46
    /**
47
     * @return DateTime
48
     */
49 2
    public function getCreatedAt():DateTime
50
    {
51 2
        return $this->createdAt;
52
    }
53
54
    /**
55
     * @return DateTime
56
     */
57 2
    public function getUpdatedAt():DateTime
58
    {
59 2
        return $this->updatedAt;
60
    }
61
}