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