Symfony2 API
Class

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

class ChoiceView

Represents a choice in templates.

Properties

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

Methods

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

Creates a new ChoiceView.

Details

at line 49
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.