ConnectionException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Pheanstalk\Exception;
4
5
/**
6
 * An exception relating to the client connection to the beanstalkd server.
7
 *
8
 * @author  Paul Annesley
9
 * @package Pheanstalk
10
 * @license http://www.opensource.org/licenses/mit-license.php
11
 */
12
class ConnectionException extends ClientException
13
{
14
    /**
15
     * @param int    $errno  The connection error code
16
     * @param string $errstr The connection error message
17
     */
18 2
    public function __construct($errno, $errstr)
19
    {
20 2
        parent::__construct(sprintf('Socket error %d: %s', $errno, $errstr));
21
    }
22
}
23