if (method_exists($this->captcha, $method = 'set_' . $name)) { $this->captcha->{$method}($value); } else { if (method_exists($this, $method = 'set_' . $name)) { $this->{$method}($value); } } } public function __unset($name) { if (method_exists($this->captcha, $method = 'unset_' . $name)) { $this->captcha->{$method}(); } else { if (method_exists($this, $method = 'unset_' . $name)) { $this->{$method}(); } } } /** * Get the BotDetect Laravel CAPTCHA package information. * * @return array */ public static function getProductInfo() { return self::$productInfo; } } // static field initialization BotDetectCaptcha::$productInfo = ['name' => 'BotDetect 4 PHP Captcha generator integration for the Laravel framework', 'version' => '4.1.0'];