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

ActorTMDB   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

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