public function getMetadata($key = null) { $this->assertAttached(); return $this->stream->getMetadata($key); }