<?php
namespace Payment\Common; abstract class ConfigInterface { public $returnRaw = true; public $useSandbox = true; public $limitPay; public $notifyUrl; public $signType = 'RSA'; public function toArray() { return get_object_vars($this); } final public function __construct(array $config) { try { $this->initConfig($config); } catch (PayException $e) { throw $e; } } abstract protected function initConfig(array $config); } 