Remove incorrect types

This commit is contained in:
Anton Medvedev 2018-02-27 23:54:46 +07:00
parent a2dbd3be2a
commit 2161cec2c4

View File

@ -20,14 +20,6 @@ class RuntimeException extends Exception
private $output; private $output;
private $errorOutput; private $errorOutput;
/**
* RuntimeException constructor.
* @param string $hostname
* @param int $command
* @param $exitCode
* @param $output
* @param $errorOutput
*/
public function __construct($hostname, $command, $exitCode, $output, $errorOutput) public function __construct($hostname, $command, $exitCode, $output, $errorOutput)
{ {
$this->hostname = $hostname; $this->hostname = $hostname;
@ -58,41 +50,26 @@ class RuntimeException extends Exception
return isset(Process::$exitCodes[$exitCode]) ? Process::$exitCodes[$exitCode] : 'Unknown error'; return isset(Process::$exitCodes[$exitCode]) ? Process::$exitCodes[$exitCode] : 'Unknown error';
} }
/** public function getHostname()
* @return string
*/
public function getHostname(): string
{ {
return $this->hostname; return $this->hostname;
} }
/** public function getCommand()
* @return int
*/
public function getCommand(): int
{ {
return $this->command; return $this->command;
} }
/**
* @return \Exception|null
*/
public function getExitCode() public function getExitCode()
{ {
return $this->exitCode; return $this->exitCode;
} }
/**
* @return mixed
*/
public function getOutput() public function getOutput()
{ {
return $this->output; return $this->output;
} }
/**
* @return mixed
*/
public function getErrorOutput() public function getErrorOutput()
{ {
return $this->errorOutput; return $this->errorOutput;