/
home
/
clp
/
htdocs
/
app
/
files
/
src
/
System
/
up file
home
<?php namespace App\System; abstract class Command { protected ?string $name = null; protected ?string $command = null; protected ?string $description = null; protected ?string $output = null; protected bool $isSuccessful = false; protected ?string $runAsUser = null; protected bool $runInBackground = false; public function getName() : ?string { return $this->name; } public function setName(string $name) : void { $this->name = $name; } public function getCommand() : string { return $this->command; } public function setCommand(string $command) : void { $this->command = $command; } public function getDescription() : ?string { return $this->description; } public function setDescription(string $description) : void { $this->description = $description; } public function setOutput(string $output) : void { $this->output = $output; } public function getOutput() : ?string { return $this->output; } public function setRunAsUser(string $userName) : void { $this->runAsUser = $userName; } public function getRunAsUser() : ?string { return $this->runAsUser; } public function setRunInBackground(bool $flag) : void { $this->runInBackground = $flag; } public function runInBackground() : bool { return $this->runInBackground; } public abstract function isSuccessful() : bool; }