W3cubDocs

/Symfony 2.8

Symfony\Component\Form\Extension\Core\View\ChoiceView

class ChoiceView

Represents a choice in templates.

Properties

string $label The label displayed to humans.
string $value The view representation of the choice.
mixed $data The original choice value.

Methods

__construct(mixed $data, string $value, string $label)

Creates a new ChoiceView.

Details

public __construct(mixed $data, string $value, string $label)

Creates a new ChoiceView.

Parameters

mixed $data The original choice.
string $value The view representation of the choice.
string $label The label displayed to humans.

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Form/Extension/Core/View/ChoiceView.html