23 lines
410 B
PHP
Executable File
23 lines
410 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|