Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

vendor/symfony/form/ChoiceList/View/ChoiceView.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Form\ChoiceList\View;
  11. use Symfony\Component\Translation\TranslatableMessage;
  12. /**
  13.  * Represents a choice in templates.
  14.  *
  15.  * @author Bernhard Schussek <bschussek@gmail.com>
  16.  */
  17. class ChoiceView
  18. {
  19.     public $label;
  20.     public $value;
  21.     public $data;
  22.     /**
  23.      * Additional attributes for the HTML tag.
  24.      */
  25.     public $attr;
  26.     /**
  27.      * Additional parameters used to translate the label.
  28.      */
  29.     public $labelTranslationParameters;
  30.     /**
  31.      * Creates a new choice view.
  32.      *
  33.      * @param mixed                            $data                       The original choice
  34.      * @param string                           $value                      The view representation of the choice
  35.      * @param string|TranslatableMessage|false $label                      The label displayed to humans; pass false to discard the label
  36.      * @param array                            $attr                       Additional attributes for the HTML tag
  37.      * @param array                            $labelTranslationParameters Additional parameters used to translate the label
  38.      */
  39.     public function __construct($datastring $value$label, array $attr = [], array $labelTranslationParameters = [])
  40.     {
  41.         $this->data $data;
  42.         $this->value $value;
  43.         $this->label $label;
  44.         $this->attr $attr;
  45.         $this->labelTranslationParameters $labelTranslationParameters;
  46.     }
  47. }