vendor/react/promise-timer/src/TimeoutException.php
raw| 1 | <?php |
| 2 | |
| 3 | namespace React\Promise\Timer; |
| 4 | |
| 5 | use RuntimeException; |
| 6 | |
| 7 | class TimeoutException extends RuntimeException |
| 8 | { |
| 9 | private $timeout; |
| 10 | |
| 11 | public function __construct($timeout, $message = null, $code = null, $previous = null) |
| 12 | { |
| 13 | parent::__construct($message, $code, $previous); |
| 14 | |
| 15 | $this->timeout = $timeout; |
| 16 | } |
| 17 | |
| 18 | public function getTimeout() |
| 19 | { |
| 20 | return $this->timeout; |
| 21 | } |
| 22 | } |