1 | <?php |
||
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() |
|
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() |
|
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() |
|
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() |
|
144 | |||
145 | /** |
||
146 | * @param string|null $workingDirectory |
||
147 | * @return $this |
||
148 | */ |
||
149 | public function setWorkingDirectory($workingDirectory): self |
||
154 | |||
155 | 5 | public function isVisibleInMainMenu(): bool |
|
159 | |||
160 | public function setVisibleInMainMenu(bool $visibleInMainMenu): self |
||
165 | |||
166 | 5 | public function isVisibleInEditor(): bool |
|
170 | |||
171 | public function setVisibleInEditor(bool $visibleInEditor): self |
||
176 | |||
177 | 5 | public function isVisibleInProject(): bool |
|
181 | |||
182 | public function setVisibleInProject(bool $visibleInProject): self |
||
187 | |||
188 | 5 | public function isVisibleInSearchPopup(): bool |
|
192 | |||
193 | public function setVisibleInSearchPopup(bool $visibleInSearchPopup): self |
||
198 | |||
199 | 5 | public function isConsoleShownAlways(): bool |
|
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 |
|
214 | |||
215 | public function setConsoleShownOnStdOut(bool $consoleShownOnStdOut): self |
||
220 | |||
221 | 5 | public function isConsoleShownOnStdErr(): bool |
|
225 | |||
226 | public function setConsoleShownOnStdErr(bool $consoleShownOnStdErr): self |
||
231 | |||
232 | 5 | public function isSynchronizationRequired(): bool |
|
236 | |||
237 | 6 | public function setSynchronizationRequired(bool $synchronizationRequired): self |
|
238 | { |
||
239 | 6 | $this->synchronizationRequired = $synchronizationRequired; |
|
240 | 6 | return $this; |
|
241 | } |
||
242 | } |
||
243 |