Completed
Pull Request — master (#523)
by Jeroen
04:33
created

UuidEntity::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity;
4
5
use rhumsaa\Uuid\Uuid;
6
7
class UuidEntity
8
{
9
    private $uuid;
10
11
    public function __construct()
12
    {
13
        $this->uuid = Uuid::uuid4();
14
    }
15
16
    public function getId()
17
    {
18
        return $this->uuid;
19
    }
20
}
21