Gallery::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Entity;
4
5
use Sonata\MediaBundle\Entity\BaseGallery as BaseGallery;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Table(name="media__gallery")
10
 * @ORM\Entity
11
 */
12
class Gallery extends BaseGallery
13
{
14
    /**
15
     * @var integer
16
     *
17
     * @ORM\Column(name="id", type="integer")
18
     * @ORM\Id
19
     * @ORM\GeneratedValue(strategy="AUTO")
20
     */
21
    protected $id;
22
23
    /**
24
     * Get id
25
     *
26
     * @return integer
27
     */
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
}
33