Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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 | /** |
||
37 | * @param string $id |
||
38 | */ |
||
39 | public function setId(string $id): void |
||
42 | } |
||
43 | } |
||
44 |