1 | <?php |
||
8 | class LoggerDecoratedIO implements IOInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var IOInterface |
||
12 | */ |
||
13 | private $io; |
||
14 | |||
15 | /** |
||
16 | * @var LoggerInterface |
||
17 | */ |
||
18 | private $logger; |
||
19 | |||
20 | /** |
||
21 | * @param IOInterface $io |
||
22 | * @param LoggerInterface $logger |
||
23 | */ |
||
24 | 5 | public function __construct(IOInterface $io, LoggerInterface $logger) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 1 | public function open($protocol, $host, $port, array $parameters = []) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 1 | public function close() |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | public function peek($length, $blocking = true) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 1 | public function read($length, $blocking = true) |
|
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 1 | public function write($data, $length = null) |
|
84 | } |
||
85 |