Passed
Push — feature/VSVGVQ-20 ( 9a1232...fb2a39 )
by steven
04:50
created

Entity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace VSV\GVQ_API\Common\Repositories\Entities;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\MappedSuperclass()
9
 */
10
abstract class Entity
11
{
12
    /**
13
     * @var string
14
     *
15
     * @ORM\Id()
16
     * @ORM\Column(type="string", length=36)
17
     */
18
    private $id;
19
20
    /**
21
     * @param string $id
22
     */
23
    public function __construct(string $id)
24
    {
25
        $this->id = $id;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getId(): string
32
    {
33
        return $this->id;
34
    }
35
}
36