Passed
Push — master ( 229462...d74785 )
by Andreas
02:20 queued 14s
created

TableMetadataStorageConfiguration   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 65
ccs 24
cts 24
cp 1
rs 10
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setTableName() 0 3 1
A getExecutionTimeColumnName() 0 3 1
A getExecutedAtColumnName() 0 3 1
A setExecutedAtColumnName() 0 3 1
A getVersionColumnLength() 0 3 1
A setVersionColumnLength() 0 3 1
A getVersionColumnName() 0 3 1
A getTableName() 0 3 1
A setVersionColumnName() 0 3 1
A setExecutionTimeColumnName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Metadata\Storage;
6
7
final class TableMetadataStorageConfiguration implements MetadataStorageConfiguration
8
{
9
    /** @var string */
10
    private $tableName = 'doctrine_migration_versions';
11
12
    /** @var string */
13
    private $versionColumnName = 'version';
14
15
    /** @var int */
16
    private $versionColumnLength = 1024;
17
18
    /** @var string */
19
    private $executedAtColumnName = 'executed_at';
20
21
    /** @var string */
22
    private $executionTimeColumnName = 'execution_time';
23
24 67
    public function getTableName() : string
25
    {
26 67
        return $this->tableName;
27
    }
28
29 13
    public function setTableName(string $tableName) : void
30
    {
31 13
        $this->tableName = $tableName;
32 13
    }
33
34 64
    public function getVersionColumnName() : string
35
    {
36 64
        return $this->versionColumnName;
37
    }
38
39 10
    public function setVersionColumnName(string $versionColumnName) : void
40
    {
41 10
        $this->versionColumnName = $versionColumnName;
42 10
    }
43
44 64
    public function getVersionColumnLength() : int
45
    {
46 64
        return $this->versionColumnLength;
47
    }
48
49 10
    public function setVersionColumnLength(int $versionColumnLength) : void
50
    {
51 10
        $this->versionColumnLength = $versionColumnLength;
52 10
    }
53
54 64
    public function getExecutedAtColumnName() : string
55
    {
56 64
        return $this->executedAtColumnName;
57
    }
58
59 10
    public function setExecutedAtColumnName(string $executedAtColumnName) : void
60
    {
61 10
        $this->executedAtColumnName = $executedAtColumnName;
62 10
    }
63
64 64
    public function getExecutionTimeColumnName() : string
65
    {
66 64
        return $this->executionTimeColumnName;
67
    }
68
69 10
    public function setExecutionTimeColumnName(string $executionTimeColumnName) : void
70
    {
71 10
        $this->executionTimeColumnName = $executionTimeColumnName;
72 10
    }
73
}
74