Completed
Push — master ( 4be93f...79933c )
by Guillaume
11:24
created

UuidTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUuid() 0 4 1
A setUuid() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: DIEU
5
 * Date: 10/05/2017
6
 * Time: 02:24
7
 */
8
9
namespace Starkerxp\StructureBundle\Entity;
10
11
use Doctrine\ORM\Mapping as ORM;
12
13
trait UuidTrait
14
{
15
16
    /**
17
     * @var guid
18
     *
19
     * @ORM\Column(name="uuid", type="guid", nullable=false)
20
     */
21
    protected $uuid;
22
23
24
    /**
25
     * Get uuid.
26
     *
27
     * @return guid
28
     */
29
    public function getUuid()
30
    {
31
        return $this->uuid;
32
    }
33
34
    /**
35
     * Set uuid.
36
     *
37
     * @param guid $uuid
38
     *
39
     */
40
    public function setUuid($uuid)
41
    {
42
        $this->uuid = $uuid;
43
    }
44
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
45