-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathBuildError.php
More file actions
138 lines (113 loc) · 3.01 KB
/
Copy pathBuildError.php
File metadata and controls
138 lines (113 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
declare(strict_types=1);
namespace PHPCensor\Model\Base;
use PHPCensor\Model;
use PHPCensor\Traits\Model\HasCreateDateTrait;
/**
* @package PHP Censor
* @subpackage Application
*
* @author Dan Cryer <dan@block8.co.uk>
* @author Dmitry Khomutov <poisoncorpsee@gmail.com>
*/
class BuildError extends Model
{
use HasCreateDateTrait;
public const SEVERITY_CRITICAL = 0;
public const SEVERITY_HIGH = 1;
public const SEVERITY_NORMAL = 2;
public const SEVERITY_LOW = 3;
protected array $data = [
'id' => null,
'build_id' => null,
'plugin' => null,
'file' => null,
'line_start' => null,
'line_end' => null,
'severity' => null,
'message' => null,
'create_date' => null,
'hash' => '',
'is_new' => 0,
];
protected array $dataTypes = [
'build_id' => 'integer',
'line_start' => 'integer',
'line_end' => 'integer',
'severity' => 'integer',
'create_date' => 'datetime',
'is_new' => 'boolean'
];
public function getBuildId(): ?int
{
return $this->getDataItem('build_id');
}
public function setBuildId(int $value): bool
{
return $this->setDataItem('build_id', $value);
}
public function getPlugin(): ?string
{
return $this->getDataItem('plugin');
}
public function setPlugin(string $value): bool
{
return $this->setDataItem('plugin', $value);
}
public function getFile(): ?string
{
return $this->getDataItem('file');
}
public function setFile(?string $value): bool
{
return $this->setDataItem('file', $value);
}
public function getLineStart(): ?int
{
return $this->getDataItem('line_start');
}
public function setLineStart(?int $value): bool
{
return $this->setDataItem('line_start', $value);
}
public function getLineEnd(): ?int
{
return $this->getDataItem('line_end');
}
public function setLineEnd(?int $value): bool
{
return $this->setDataItem('line_end', $value);
}
public function getSeverity(): ?int
{
return $this->getDataItem('severity');
}
public function setSeverity(int $value): bool
{
return $this->setDataItem('severity', $value);
}
public function getMessage(): ?string
{
return $this->getDataItem('message');
}
public function setMessage(string $value): bool
{
return $this->setDataItem('message', $value);
}
public function getHash(): ?string
{
return $this->getDataItem('hash');
}
public function setHash(string $value): bool
{
return $this->setDataItem('hash', $value);
}
public function getIsNew(): bool
{
return $this->getDataItem('is_new');
}
public function setIsNew(bool $value): bool
{
return $this->setDataItem('is_new', $value);
}
}