first commit

This commit is contained in:
2024-04-01 09:54:43 +08:00
commit 899d816bc3
795 changed files with 130040 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Yeepay\Yop\Sdk\Auth;
use Yeepay\Yop\Sdk\Auth\Signer\RsaSigner;
class SignerFactory
{
private static $signers = [];
public static function init()
{
self::$signers['RSA'] = new RsaSigner();
}
/**
* @param $signerType string
* @return Signer
*/
public static function getSigner($signerType)
{
return self::$signers[$signerType];
}
}
SignerFactory::init();