12345678910111213141516171819 |
- <?php
- namespace App\Libs\Pay;
- /**
- * @method static \App\Libs\Pay\Merchants\UnionPay unionPay(array $data)
- * @method static \App\Libs\Pay\Merchants\Official official(array $data)
- * @method static \App\Libs\Pay\Merchants\AliPay aliPay(array $config)
- */
- class PayFactory
- {
- public static function __callStatic($name, $arguments)
- {
- $namesapce = "\\App\\Libs\\Pay\\Merchants";
- $application = $namesapce . "\\" . ucfirst($name);
- return new $application(...$arguments);
- }
- }
|