Completed
Push — master ( 7f186d...ef28ef )
by Philip
03:23
created

AbstractEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A isPersisted() 0 4 1
1
<?php
2
3
4
namespace Dontdrinkandroot\Entity;
5
6
abstract class AbstractEntity implements EntityInterface
7
{
8
    public function __construct()
9
    {
10
    }
11
12
    /**
13
     * @deprecated
14
     */
15
    public function isPersisted()
16
    {
17
        return null !== $this->getId();
18
    }
19
}
20