Passed
Push — develop ( 0abebc...5f8ba8 )
by BENARD
05:36
created

SerieTranslation::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
7
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
8
use VideoGamesRecords\CoreBundle\Traits\Entity\DescriptionTrait;
9
10
/**
11
 * @ORM\Entity
12
 * @ORM\Table(name="vgr_serie_translation")
13
 */
14
class SerieTranslation implements TranslationInterface
15
{
16
    use TranslationTrait;
17
    use DescriptionTrait;
18
19
    /**
20
     * @ORM\Id
21
     * @ORM\Column(type="integer")
22
     * @ORM\GeneratedValue(strategy="AUTO")
23
     */
24
    private ?int $id = null;
25
26
27
    /**
28
     * @return int|null
29
     */
30
    public function getId(): ?int
31
    {
32
        return $this->id;
33
    }
34
}
35