/** * Set option * * If option is a service parameter, proxies to the service. The same * goes for any service options (distinct from service params) * * @param string $key * @param mixed $value * @return \Zend\Captcha\ReCaptcha */ public function setOption($key, $value) { $service = $this->getService(); if (isset($this->_serviceParams[$key])) { $service->setParam($key, $value); return $this; } if (isset($this->_serviceOptions[$key])) { $service->setOption($key, $value); return $this; } return parent::setOption($key, $value); }
/** * Set option * * If option is a service parameter, proxies to the service. The same * goes for any service options (distinct from service params) * * @param string $key * @param mixed $value * @return ReCaptcha */ public function setOption($key, $value) { $service = $this->getService(); if (array_key_exists($key, $this->serviceParams)) { $service->setParam($key, $value); return $this; } if (array_key_exists($key, $this->serviceOptions)) { $service->setOption($key, $value); return $this; } return parent::setOption($key, $value); }