/** * @param bool $testMode */ protected function setTestMode($testMode = TRUE) { $this->testMode = (bool) $testMode; GopayConfig::$version = $this->testMode ? GopayConfig::TEST : GopayConfig::PROD; }
/** * Sets state of test mode * * @param bool * @return static provides a fluent interface */ public function setTestMode($testMode = TRUE) { $this->testMode = (bool) $testMode; GopayConfig::$version = $this->testMode ? GopayConfig::TEST : GopayConfig::PROD; return $this; }