| 1 | <?php declare(strict_types=1); |
||
| 9 | class Script |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $directory; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $scriptName; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $environment; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $description; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $directory |
||
| 33 | * @param string $scriptName |
||
| 34 | * @param string $environment |
||
| 35 | * @param string $description |
||
| 36 | */ |
||
| 37 | public function __construct(string $directory, string $scriptName, string $environment = null, $description = '') |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getPath(): string |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getDirectory(): string |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getName(): string |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string|null |
||
| 77 | */ |
||
| 78 | public function getEnvironment() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @return string |
||
| 85 | */ |
||
| 86 | public function getDescription(): string |
||
| 90 | } |
||
| 91 |