/** * @static Construct the singleton instance of this class. * * @param GatewayType $gateway_adapter * * @return Gateway_Extras_SessionVelocityFilter */ private static function singleton(GatewayType $gateway_adapter) { if (!self::$instance || $gateway_adapter->isBatchProcessor()) { self::$instance = new self($gateway_adapter); } return self::$instance; }
protected function runSessionVelocityFilter() { $result = Gateway_Extras_SessionVelocityFilter::onProcessorApiCall($this); if ($result == false) { $this->logger->info('Processor API call aborted on Session Velocity filter'); $this->setValidationAction('reject'); } return $result; }