Completed
Push — master ( 39dd26...9acb9c )
by Maik
02:56
created

SocketException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the PHP Generics package.
5
 *
6
 * @package Generics
7
 */
8
namespace Generics\Socket;
9
10
use Generics\GenericsException;
11
use Exception;
12
13
/**
14
 * Derived exception
15
 *
16
 * Will be thrown whenever socket has an exceptional state
17
 *
18
 * @author Maik Greubel <[email protected]>
19
 */
20
class SocketException extends GenericsException
21
{
22
    /**
23
     * Create a new SocketException
24
     *
25
     * @param string $message
26
     *            The message to throw; May contain placeholder like {placeholder} and will be replaced by context
27
     *            elements
28
     * @param array $context
29
     *            The context elements to replace in message
30
     * @param number $code
31
     *            Optional code
32
     * @param Exception $previous
33
     *            Optional previous exception
34
     */
35 2
    public function __construct($message, array $context = array(), $code = 0, Exception $previous = null)
36
    {
37 2
    	parent::__construct($message, $context, $code, $previous);
38 2
    }
39
}
40