mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 17:22:41 +01:00
Remove incorrect types
This commit is contained in:
parent
a2dbd3be2a
commit
2161cec2c4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user