init
This commit is contained in:
22
vendor/react/promise-timer/src/TimeoutException.php
vendored
Executable file
22
vendor/react/promise-timer/src/TimeoutException.php
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace React\Promise\Timer;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class TimeoutException extends RuntimeException
|
||||
{
|
||||
private $timeout;
|
||||
|
||||
public function __construct($timeout, $message = null, $code = null, $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
|
||||
$this->timeout = $timeout;
|
||||
}
|
||||
|
||||
public function getTimeout()
|
||||
{
|
||||
return $this->timeout;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user