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

sirn-se / websocket-php / 8346487915

19 Mar 2024 04:15PM UTC coverage: 22.584% (-77.4%) from 100.0%
8346487915

push

github

sirn-se
Temp test verification

2 of 2 new or added lines in 1 file covered. (100.0%)

742 existing lines in 32 files now uncovered.

222 of 983 relevant lines covered (22.58%)

0.23 hits per line

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

0.0
/src/Exception/CloseException.php
1
<?php
2

3
/**
4
 * Copyright (C) 2014-2024 Textalk and contributors.
5
 * This file is part of Websocket PHP and is free software under the ISC License.
6
 */
7

8
namespace WebSocket\Exception;
9

10
/**
11
 * WebSocket\Exception\CloseException class.
12
 * Connection should close
13
 */
14
class CloseException extends Exception
15
{
16
    protected $status;
17
    protected $content;
18

19
    public function __construct(int|null $status = null, string $content = '')
20
    {
UNCOV
21
        $this->status = $status;
×
UNCOV
22
        parent::__construct($content);
×
23
    }
24

25
    public function getCloseStatus(): int|null
26
    {
UNCOV
27
        return $this->status;
×
28
    }
29
}
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