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

sineflow / clamav / 17156532968

22 Aug 2025 01:18PM UTC coverage: 76.106% (+1.1%) from 75.0%
17156532968

push

github

pmishev
Updated github actions

86 of 113 relevant lines covered (76.11%)

50.26 hits per line

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

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

3
namespace Sineflow\ClamAV\Exception;
4

5
class SocketException extends \RuntimeException
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $errorCode;
11

12
    /**
13
     * @param string   $message
14
     * @param int|null $socketErrorCode
15
     */
16
    public function __construct(string $message, int $socketErrorCode = null)
×
17
    {
18
        $this->errorCode = $socketErrorCode;
×
19
        if ($socketErrorCode) {
×
20
            $message = sprintf('%s: (%s) %s', $message, $socketErrorCode, socket_strerror($socketErrorCode));
×
21
        }
22

23
        parent::__construct($message);
×
24
    }
25

26
    /**
27
     * Get socket error (returned from 'socket_last_error')
28
     * @return int
29
     */
30
    public function getErrorCode(): ?int
×
31
    {
32
        return $this->errorCode;
×
33
    }
34
}
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

© 2026 Coveralls, Inc