DataStream   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 1
eloc 4
c 4
b 1
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Lazzard/ftp-bridge package.
5
 *
6
 * (c) El Amrani Chakir <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Lazzard\FtpBridge\Stream;
13
14
use Lazzard\FtpBridge\Logger\LoggerInterface;
15
16
/**
17
 * Absracts a data stream socket.
18
 *
19
 * @since  1.0
20
 * @author El Amrani Chakir <[email protected]>
21
 * 
22
 * @internal
23
 */
24
abstract class DataStream extends Stream
25
{
26
    /** @var StreamInterface */
27
    public $commandStream;
28
29
    /**
30
     * Opens a data stream socket.
31
     *
32
     * @param LoggerInterface $logger
33
     * @param StreamInterface $commandStream
34
     */
35
    public function __construct($logger, $commandStream)
36
    {
37
        parent::__construct($logger);
38
        $this->commandStream   = $commandStream;
39
    }
40
}