Completed
Push — master ( c5d644...a435b5 )
by Guillaume
02:45
created

IdTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 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 IdTrait
14
{
15
16
    /**
17
     * @var int
18
     *
19
     * @ORM\Column(name="id", type="integer")
20
     * @ORM\Id
21
     * @ORM\GeneratedValue(strategy="AUTO")
22
     */
23
    protected $id;
24
25
    /**
26
     * @return int
27
     */
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
33
}
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...
34