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

AbstractEntityWithUuid::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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