Question regarding the LLM Chain - [Chains] Video Series Part

1. destination_chains = {}
2. for p_info in prompt_infos:
3. name = p_info["name"]
4. prompt_template = p_info["prompt_template"]
5. prompt = ChatPromptTemplate.from_template(template=prompt_template)
6. chain = LLMChain(llm=llm, prompt=prompt)
7. destination_chains[name] = chain

What is the responsibility of the LLMChain()? Does it take the prompt_template from the line above(Line 6.) and matches is with the input that is provided to the llm? Lastly, is the chain passed to the destination_chains dictionary in accordance to the name of the prompt in the prompt_infos list?