name: ChoiceView class_comment: '# * Represents a choice in templates. # * # * @author Bernhard Schussek ' dependencies: - name: TranslatableInterface type: class source: Symfony\Contracts\Translation\TranslatableInterface properties: [] methods: - name: __construct visibility: public parameters: - name: data - name: value - name: label - name: attr default: '[]' - name: labelTranslationParameters default: '[]' comment: '# * Represents a choice in templates. # * # * @author Bernhard Schussek # */ # class ChoiceView # { # /** # * Creates a new choice view. # * # * @param mixed $data The original choice # * @param string $value The view representation of the choice # * @param string|TranslatableInterface|false $label The label displayed to humans; pass false to discard the label # * @param array $attr Additional attributes for the HTML tag # * @param array $labelTranslationParameters Additional parameters used to translate the label' traits: - Symfony\Contracts\Translation\TranslatableInterface interfaces: []