| 1 | <?php |
||
| 16 | class WebSocketError extends RuntimeException { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var mixed |
||
| 20 | */ |
||
| 21 | protected $extra; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Frame|null |
||
| 25 | */ |
||
| 26 | protected $frame; |
||
| 27 | |||
| 28 | public function __construct (int $code, string $message = '', Frame $frame = null, Throwable $previous = null) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | public function getExtra () { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Frame|null |
||
| 42 | */ |
||
| 43 | public function getFrame () { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param mixed $extra |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | public function setExtra ($extra) { |
||
| 55 | |||
| 56 | } |