Esempio n. 1
0
 /**
  * @param string $name
  * @param array $choices
  */
 public function __construct($name, array $choices = [])
 {
     parent::__construct($name);
     $this->setChoices($choices);
 }
Esempio n. 2
0
 /**
  * @param string $name
  * @param CaptchaAdapter $captchaAdapter
  */
 public function __construct($name, CaptchaAdapter $captchaAdapter)
 {
     parent::__construct($name);
     $this->captchaAdapter = $captchaAdapter;
 }
Esempio n. 3
0
 /**
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->amount = new Text("{$name}[amount]");
     $this->currency = 'MXN';
 }