for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace tinymeng\code\Connector;
/**
* Class Name: Gateway
* @author Tinymeng <[email protected]>
* @date: 2019/9/27 11:46
* @package tinymeng\code\Connector
*/
abstract class Gateway implements GatewayInterface
{
* 配置参数
* @var array
protected $config;
* 是否开启debug
* @var bool
protected $debug = false;
* Gateway constructor.
* @param null $config
$config
null
* @throws \Exception
public function __construct($config = [])
//默认参数
$_config = [
$_config
'debug'=>false
];
$this->config = $config;
// $this->config = array_replace_recursive($_config,$config);
}
* Function Name: 开启debug
* @param boolean $debug
* @date: 2019/9/26 10:44
public function setDebug($debug){
$this->debug = $debug;