Completed
Branch 0.4-dev (f926df)
by Evgenij
04:00
created

RecvDataException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 4
crap 1
1
<?php
2
/**
3
 * Async sockets
4
 *
5
 * @copyright Copyright (c) 2015-2017, Efimov Evgenij <[email protected]>
6
 *
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
namespace AsyncSockets\Exception;
11
12
use AsyncSockets\Socket\SocketInterface;
13
14
/**
15
 * Class RecvDataException. Thrown any time there is error during data receiving process
16
 */
17
class RecvDataException extends TransferException
18
{
19
    /**
20
     * @inheritDoc
21
     */
22 1
    public function __construct(
23
        SocketInterface $socket,
24
        $message = '',
25
        $code = 0,
26
        \Exception $previous = null
27
    ) {
28 1
        parent::__construct($socket, self::DIRECTION_RECV, $message, $code, $previous);
29 1
    }
30
}
31