/** * Check if the stream is connected. * * @return boolean True if the stream is connected. */ public function isConnected() { return $this->connected->isConnected(); }