• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sirn-se / websocket-php / 5608975860

pending completion
5608975860

push

github

Sören Jensen
Middleware support

90 of 90 new or added lines in 8 files covered. (100.0%)

245 of 671 relevant lines covered (36.51%)

1.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ConnectionException.php
1
<?php
2

3
/**
4
 * Copyright (C) 2014-2023 Textalk and contributors.
5
 *
6
 * This file is part of Websocket PHP and is free software under the ISC License.
7
 * License text: https://raw.githubusercontent.com/sirn-se/websocket-php/master/COPYING.md
8
 */
9

10
namespace WebSocket;
11

12
use Throwable;
13

14
/**
15
 * WebSocket\ConnectionException class.
16
 * Thrown when connection operation fails.
17
 */
18
class ConnectionException extends Exception
19
{
20
    private $data;
21

22
    public function __construct(string $message, int $code = 0, array $data = [], Throwable $prev = null)
23
    {
24
        parent::__construct($message, $code, $prev);
×
25
        $this->data = $data;
×
26
    }
27

28
    public function getData(): array
29
    {
30
        return $this->data;
×
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc