public function all() : array { foreach ($this as $document) { $result[] = $document; } return $result ?? []; }