private function indexTags($id, array $tags) { foreach ($tags as $tag) { $this->tags[$tag][] = $id; } }