Change   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 49
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getFilename() 0 2 1
A getTimestamp() 0 2 1
A getScript() 0 2 1
A getState() 0 2 1
A __construct() 0 16 1
A getDescription() 0 2 1
A getUpdateId() 0 2 1
1
<?php
2
namespace AL\Common\Model\Database;
3
4
/**
5
 * Maps to the `database_change` table
6
 */
7
class Change {
8
    private $id;
9
    private $update_id;
10
    private $description;
11
    private $timestamp;
12
    private $state;
13
    private $filename;
14
    private $script;
15
16
    public function __construct(
17
        $id,
18
        $update_id,
19
        $description,
20
        $timestamp,
21
        $state,
22
        $filename,
23
        $script
24
    ) {
25
        $this->id = $id;
26
        $this->update_id = $update_id;
27
        $this->description = $description;
28
        $this->timestamp = $timestamp;
29
        $this->state = $state;
30
        $this->filename = $filename;
31
        $this->script = $script;
32
    }
33
34
    public function getUpdateId() {
35
        return $this->update_id;
36
    }
37
38
    public function getDescription() {
39
        return $this->description;
40
    }
41
42
    public function getTimestamp() {
43
        return $this->timestamp;
44
    }
45
46
    public function getState() {
47
        return $this->state;
48
    }
49
50
    public function getFilename() {
51
        return $this->filename;
52
    }
53
54
    public function getScript() {
55
        return $this->script;
56
    }
57
}
58