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

SerieTranslation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
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