/** * @param string * @param int */ public function __construct($message) { parent::__construct(); $this->setOmitted()->addRule(self::PROTECTION, $message); $this->monitor('Nette\\Application\\UI\\Presenter'); }
/** * @param string * @param int */ public function __construct($message) { parent::__construct(); $this->setOmitted()->setRequired()->addRule(self::PROTECTION, $message); $this->monitor(Nette\Application\UI\Presenter::class); }
/** * @param CaptchaProvider $provider */ public function __construct(CaptchaProvider $provider) { parent::__construct($provider->getHash()); $this->provider = $provider; }
/** * @param string|null $caption */ public function __construct($caption = null) { parent::__construct($caption); $this->monitor('Nette\\Application\\UI\\Presenter'); $this->setOmitted(true); }