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

ActorTMDB   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 5
cts 5
cp 1
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 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