1
|
|
|
<?php |
2
|
|
|
declare(strict_types=1); |
3
|
|
|
|
4
|
|
|
namespace Paysera\PhpStormHelper\Entity; |
5
|
|
|
|
6
|
|
|
/** |
7
|
|
|
* @api |
8
|
|
|
*/ |
9
|
|
|
class ExternalToolConfiguration |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* @var string|null |
13
|
|
|
*/ |
14
|
|
|
private $name; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var string|null |
18
|
|
|
*/ |
19
|
|
|
private $command; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string|null |
23
|
|
|
*/ |
24
|
|
|
private $parameters; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string|null |
28
|
|
|
*/ |
29
|
|
|
private $workingDirectory; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var bool |
33
|
|
|
*/ |
34
|
|
|
private $visibleInMainMenu; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var bool |
38
|
|
|
*/ |
39
|
|
|
private $visibleInEditor; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var bool |
43
|
|
|
*/ |
44
|
|
|
private $visibleInProject; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var bool |
48
|
|
|
*/ |
49
|
|
|
private $visibleInSearchPopup; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var bool |
53
|
|
|
*/ |
54
|
|
|
private $consoleShownAlways; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var bool |
58
|
|
|
*/ |
59
|
|
|
private $consoleShownOnStdOut; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var bool |
63
|
|
|
*/ |
64
|
|
|
private $consoleShownOnStdErr; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var bool |
68
|
|
|
*/ |
69
|
|
|
private $synchronizationRequired; |
70
|
|
|
|
71
|
6 |
|
public function __construct() |
72
|
|
|
{ |
73
|
6 |
|
$this->visibleInMainMenu = false; |
74
|
6 |
|
$this->visibleInEditor = false; |
75
|
6 |
|
$this->visibleInProject = false; |
76
|
6 |
|
$this->visibleInSearchPopup = false; |
77
|
6 |
|
$this->consoleShownAlways = false; |
78
|
6 |
|
$this->consoleShownOnStdOut = false; |
79
|
6 |
|
$this->consoleShownOnStdErr = true; |
80
|
6 |
|
$this->synchronizationRequired = true; |
81
|
6 |
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @return string|null |
85
|
|
|
*/ |
86
|
5 |
|
public function getName() |
87
|
|
|
{ |
88
|
5 |
|
return $this->name; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @param string|null $name |
93
|
|
|
* @return $this |
94
|
|
|
*/ |
95
|
6 |
|
public function setName($name): self |
96
|
|
|
{ |
97
|
6 |
|
$this->name = $name; |
98
|
6 |
|
return $this; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @return string|null |
103
|
|
|
*/ |
104
|
5 |
|
public function getCommand() |
105
|
|
|
{ |
106
|
5 |
|
return $this->command; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @param string|null $command |
111
|
|
|
* @return $this |
112
|
|
|
*/ |
113
|
6 |
|
public function setCommand($command): self |
114
|
|
|
{ |
115
|
6 |
|
$this->command = $command; |
116
|
6 |
|
return $this; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @return string|null |
121
|
|
|
*/ |
122
|
5 |
|
public function getParameters() |
123
|
|
|
{ |
124
|
5 |
|
return $this->parameters; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @param string|null $parameters |
129
|
|
|
* @return $this |
130
|
|
|
*/ |
131
|
6 |
|
public function setParameters($parameters): self |
132
|
|
|
{ |
133
|
6 |
|
$this->parameters = $parameters; |
134
|
6 |
|
return $this; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @return string|null |
139
|
|
|
*/ |
140
|
5 |
|
public function getWorkingDirectory() |
141
|
|
|
{ |
142
|
5 |
|
return $this->workingDirectory; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @param string|null $workingDirectory |
147
|
|
|
* @return $this |
148
|
|
|
*/ |
149
|
|
|
public function setWorkingDirectory($workingDirectory): self |
150
|
|
|
{ |
151
|
|
|
$this->workingDirectory = $workingDirectory; |
152
|
|
|
return $this; |
153
|
|
|
} |
154
|
|
|
|
155
|
5 |
|
public function isVisibleInMainMenu(): bool |
156
|
|
|
{ |
157
|
5 |
|
return $this->visibleInMainMenu; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
public function setVisibleInMainMenu(bool $visibleInMainMenu): self |
161
|
|
|
{ |
162
|
|
|
$this->visibleInMainMenu = $visibleInMainMenu; |
163
|
|
|
return $this; |
164
|
|
|
} |
165
|
|
|
|
166
|
5 |
|
public function isVisibleInEditor(): bool |
167
|
|
|
{ |
168
|
5 |
|
return $this->visibleInEditor; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
public function setVisibleInEditor(bool $visibleInEditor): self |
172
|
|
|
{ |
173
|
|
|
$this->visibleInEditor = $visibleInEditor; |
174
|
|
|
return $this; |
175
|
|
|
} |
176
|
|
|
|
177
|
5 |
|
public function isVisibleInProject(): bool |
178
|
|
|
{ |
179
|
5 |
|
return $this->visibleInProject; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
public function setVisibleInProject(bool $visibleInProject): self |
183
|
|
|
{ |
184
|
|
|
$this->visibleInProject = $visibleInProject; |
185
|
|
|
return $this; |
186
|
|
|
} |
187
|
|
|
|
188
|
5 |
|
public function isVisibleInSearchPopup(): bool |
189
|
|
|
{ |
190
|
5 |
|
return $this->visibleInSearchPopup; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
public function setVisibleInSearchPopup(bool $visibleInSearchPopup): self |
194
|
|
|
{ |
195
|
|
|
$this->visibleInSearchPopup = $visibleInSearchPopup; |
196
|
|
|
return $this; |
197
|
|
|
} |
198
|
|
|
|
199
|
5 |
|
public function isConsoleShownAlways(): bool |
200
|
|
|
{ |
201
|
5 |
|
return $this->consoleShownAlways; |
202
|
|
|
} |
203
|
|
|
|
204
|
6 |
|
public function setConsoleShownAlways(bool $consoleShownAlways): self |
205
|
|
|
{ |
206
|
6 |
|
$this->consoleShownAlways = $consoleShownAlways; |
207
|
6 |
|
return $this; |
208
|
|
|
} |
209
|
|
|
|
210
|
5 |
|
public function isConsoleShownOnStdOut(): bool |
211
|
|
|
{ |
212
|
5 |
|
return $this->consoleShownOnStdOut; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
public function setConsoleShownOnStdOut(bool $consoleShownOnStdOut): self |
216
|
|
|
{ |
217
|
|
|
$this->consoleShownOnStdOut = $consoleShownOnStdOut; |
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
|
221
|
5 |
|
public function isConsoleShownOnStdErr(): bool |
222
|
|
|
{ |
223
|
5 |
|
return $this->consoleShownOnStdErr; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
public function setConsoleShownOnStdErr(bool $consoleShownOnStdErr): self |
227
|
|
|
{ |
228
|
|
|
$this->consoleShownOnStdErr = $consoleShownOnStdErr; |
229
|
|
|
return $this; |
230
|
|
|
} |
231
|
|
|
|
232
|
5 |
|
public function isSynchronizationRequired(): bool |
233
|
|
|
{ |
234
|
5 |
|
return $this->synchronizationRequired; |
235
|
|
|
} |
236
|
|
|
|
237
|
6 |
|
public function setSynchronizationRequired(bool $synchronizationRequired): self |
238
|
|
|
{ |
239
|
6 |
|
$this->synchronizationRequired = $synchronizationRequired; |
240
|
6 |
|
return $this; |
241
|
|
|
} |
242
|
|
|
} |
243
|
|
|
|