diff --git a/src/Stream/Stream.php b/src/Stream/Stream.php index 19d2124..3554b81 100644 --- a/src/Stream/Stream.php +++ b/src/Stream/Stream.php @@ -312,6 +312,14 @@ public function __destruct() $this->close(); } + /** + * @return Connection + */ + public function getConnection() + { + return $this->connection; + } + /** * Get the resource link or null if we don't have active stream * @@ -361,14 +369,6 @@ private function getReceiveMethod() return $this->method; } - /** - * @return Connection - */ - private function getConnection() - { - return $this->connection; - } - /** * @return DataHandler */