public function getAll() { $array = []; foreach ($this as $key => $thread) { $array[$key] = $thread; } return $array; }