TranslationMigration   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getNumber() 0 3 1
A setCreatedAt() 0 3 1
A setNumber() 0 3 1
A getCreatedAt() 0 3 1
A getId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Locastic\SymfonyTranslationBundle\Model;
6
7
use DateTime;
8
9
class TranslationMigration implements TranslationMigrationInterface
10
{
11
    protected ?int $id = null;
12
13
    protected ?string $number = null;
14
15
    protected ?DateTime $createdAt = null;
16
17
    public function getId(): ?int
18
    {
19
        return $this->id;
20
    }
21
22
    public function getNumber(): ?string
23
    {
24
        return $this->number;
25
    }
26
27
    public function setNumber(?string $number): void
28
    {
29
        $this->number = $number;
30
    }
31
32
    public function getCreatedAt(): ?DateTime
33
    {
34
        return $this->createdAt;
35
    }
36
37
    public function setCreatedAt(?DateTime $createdAt): void
38
    {
39
        $this->createdAt = $createdAt;
40
    }
41
}
42