Completed
Push — master ( 59ed7d...9fb967 )
by Valentyn
02:51
created

ActorTMDB::getId()   A

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
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Actors\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use Symfony\Component\Serializer\Annotation\Groups;
9
10
/**
11
 * @ORM\Embeddable
12
 */
13
class ActorTMDB
14
{
15
    /**
16
     * @Groups({"list", "view"})
17
     * @ORM\Column(type="integer", nullable=false, unique=true)
18
     */
19
    private $id;
20
21
    public function __construct(int $tmdbId)
22
    {
23
        $this->id = $tmdbId;
24
    }
25
26
    public function getId(): int
27
    {
28
        return $this->id;
29
    }
30
}
31