harbor run -t openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0451harbor download openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0451Task: Implement AcceptLanguageHeaderValue class in the app directory
Overview: Create a fully functional AcceptLanguageHeaderValue class that models an HTTP Accept-Language header value. The class must store a language tag, optional parameters (including a quality value q), and expose methods to retrieve the language, parameters, and the computed quality. It must validate the quality value if provided and throw a precise exception when invalid.
Requirements:
Location and namespace
Class and constructor
Getters
Quality handling and validation
Parameter reading strategy (robust to test variants)
Dependencies (add use statements as needed)
Acceptance criteria: