public function __toString() { $output = "FileElement (" . $this->getByteLength() . " bytes): {\n"; foreach ($this->elements as $key => $value) { $output .= "\t" . $key . ": " . $value . "\n"; } $output .= "}"; return $output; }