<commit_before><?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

namespace AktiveMerchant\Billing;

use AktiveMerchant\Billing\Base;
use AktiveMerchant\Billing\CreditCard;
use AktiveMerchant\Http\Request;
use AktiveMerchant\Billing\Exception;

/**
 * AktiveMerchant\Billing\Gateway
 * 
 * @package Aktive-Merchant
 * @author  <NAME>
 * @license http://www.opensource.org/licenses/mit-license.php
 */
abstract class Gateway
{

    public static $money_format = 'dollars'; // or cents
    
    public static $default_currency;
    
    public static $supported_countries = array();
    
    public static $supported_cardtypes = array(
        'visa', 
        'master', 
        'american_express', 
        'switch', 
        'solo', 
        'maestro'
    );
    
    public static $homepage_url;
    
    public static $display_name;
    
    private $debit_cards = array('switch', 'solo');
    
    protected $gateway_mode;
    
    protected $request;
    
    public function __construct($options) 
    {
      $this->gateway_mode = Base::$gateway_mode;
    }

    public function setRequest($request)
    {
        $this->request = $request;
    }

    public function money_format()
    {
        $class = get_class($this);
        $ref = new \ReflectionClass($class);
        return $ref->getStaticPropertyValue('money_format');
    }

    public function supported_countries()
    {
        $class = get_class($this);
        $ref = new \ReflectionClass($class);
        return $ref->getStaticPropertyValue('supported_countries');
    }

    public function supported_cardtypes()
    {
        $class = get_class($this);
        $ref = new \ReflectionClass($class);
        return $ref->getStaticPropertyValue('supported_cardtypes');
    }

    public function homepage_url()<commit_msg>remove useless constructor for Gateway class. Gateways will always overwrite this.<commit_after><?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

namespace AktiveMerchant\Billing;

use AktiveMerchant\Billing\Base;
use AktiveMerchant\Billing\CreditCard;
use AktiveMerchant\Http\Request;
use AktiveMerchant\Billing\Exception;

/**
 * AktiveMerchant\Billing\Gateway
 * 
 * @package Aktive-Merchant
 * @author  <NAME>
 * @license http://www.opensource.org/licenses/mit-license.php
 */
abstract class Gateway
{

    public static $money_format = 'dollars'; // or cents
    
    public static $default_currency;
    
    public static $supported_countries = array();
    
    public static $supported_cardtypes = array(
        'visa', 
        'master', 
        'american_express', 
        'switch', 
        'solo', 
        'maestro'
    );
    
    public static $homepage_url;
    
    public static $display_name;
    
    private $debit_cards = array('switch', 'solo');
    
    protected $gateway_mode;
    
    protected $request;

    public function setRequest($request)
    {
        $this->request = $request;
    }

    public function money_format()
    {
        $class = get_class($this);
        $ref = new \ReflectionClass($class);
        return $ref->getStaticPropertyValue('money_format');
    }

    public function supported_countries()
    {
        $class = get_class($this);
        $ref = new \ReflectionClass($class);
        return $ref->getStaticPropertyValue('supported_countries');
    }

    public function supported_cardtypes()
    {
        $class = get_class($this);
        $ref = new \ReflectionClass($class);
        return $ref->getStaticPropertyValue('supported_cardtypes');
    }

    public function homepage_url()
{'fraction_non_alphanumeric': 0.11442093541202672, 'fraction_numerical': 0.0016703786191536749, 'mean_word_length': 2.814225053078556, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5613938', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1057, 'n_words': 218}