Completed
Push — master ( 08c782...aa7cc9 )
by Rafael
02:27
created

AbstractEntityWithUuid   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 3
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace Mero\Bundle\BaseBundle\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
6
abstract class AbstractEntityWithUuid
7
{
8
    use Field\UuidTrait, Field\CreatedTrait, Field\ModifiedTrait;
9
10
    public function __construct()
11
    {
12
        $this->created = new \DateTime('now');
13
        $this->modified = new \DateTime('now');
14
    }
15
}
16