Category::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
* This file is part of the OrbitaleCmsBundle package.
5
*
6
* (c) Alexandre Rock Ancelet <[email protected]>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace Orbitale\Bundle\CmsBundle\Tests\Fixtures\TestBundle\Entity;
13
14
use Orbitale\Bundle\CmsBundle\Entity\Category as BaseCategory;
15
use Doctrine\ORM\Mapping as ORM;
16
17
/**
18
 * @ORM\Entity(repositoryClass="Orbitale\Bundle\CmsBundle\Repository\CategoryRepository")
19
 * @ORM\Table(name="orbitale_cms_categories")
20
 */
21
class Category extends BaseCategory
22
{
23
    /**
24
     * @var int
25
     * @ORM\Column(name="id", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue(strategy="AUTO")
28
     */
29
    protected $id;
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
}
39