Rename write and read methods of the composable connection interface.

This commit is contained in:
Daniele Alessandri
2013-12-10 21:26:11 +01:00
parent 59b5658cf5
commit 95b9f63cab
15 changed files with 35 additions and 34 deletions
@@ -48,15 +48,15 @@ class ComposableStreamConnection extends StreamConnection implements ComposableC
/**
* {@inheritdoc}
*/
public function writeBytes($buffer)
public function writeBuffer($buffer)
{
parent::writeBytes($buffer);
$this->write($buffer);
}
/**
* {@inheritdoc}
*/
public function readBytes($length)
public function readBuffer($length)
{
if ($length <= 0) {
throw new \InvalidArgumentException('Length parameter must be greater than 0');