Completed
Push — master ( 9fb967...b4d909 )
by Valentyn
03:32
created

ActorTMDB::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
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 2
    public function __construct(int $tmdbId)
22
    {
23 2
        $this->id = $tmdbId;
24 2
    }
25
26 2
    public function getId(): int
27
    {
28 2
        return $this->id;
29
    }
30
}
31