4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form\Extension\Core\View
;
15 * Represents a choice in templates.
17 * @author Bernhard Schussek <bschussek@gmail.com>
22 * The original choice value.
29 * The view representation of the choice.
36 * The label displayed to humans.
43 * Creates a new ChoiceView.
45 * @param mixed $data The original choice.
46 * @param string $value The view representation of the choice.
47 * @param string $label The label displayed to humans.
49 public function __construct($data, $value, $label)
52 $this->value
= $value;
53 $this->label
= $label;