1 | <?php declare(strict_types=1); |
||
12 | class Script |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $directory; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $scriptName; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $environment; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | public $description; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $isHiddenPath; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $workingDirectory; |
||
43 | |||
44 | public function __construct( |
||
45 | string $directory, |
||
46 | string $scriptName, |
||
47 | bool $isHiddenPath, |
||
48 | string $workingDirectory, |
||
49 | ?string $environment = null, |
||
50 | string $description = '' |
||
51 | ) { |
||
52 | $this->directory = $directory; |
||
53 | $this->scriptName = $scriptName; |
||
54 | $this->environment = $environment; |
||
55 | $this->description = $description; |
||
56 | $this->isHiddenPath = $isHiddenPath; |
||
57 | $this->workingDirectory = $workingDirectory; |
||
58 | } |
||
59 | |||
60 | public function getTmpPath(): string |
||
64 | |||
65 | public function getPath(): string |
||
69 | |||
70 | public function getDirectory(): string |
||
74 | |||
75 | public function getName(): string |
||
85 | |||
86 | /** |
||
87 | * @return string|null |
||
88 | */ |
||
89 | public function getEnvironment() |
||
93 | |||
94 | public function getDescription(): string |
||
98 | |||
99 | public function isHidden(): bool |
||
103 | |||
104 | public function getWorkingDirectory(): string |
||
108 | } |
||
109 |