| 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 | 4 | 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 read($length, $blocking = true) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | 1 | public function write($data, $length = null) |
|
| 76 | } |
||
| 77 |