30 lines
561 B
PHP
30 lines
561 B
PHP
<?php
|
|
/**
|
|
* This service file is part of item.
|
|
*
|
|
* @author ctexthuang
|
|
* @contact ctexthuang@qq.com
|
|
* @web_site https://ctexthuang.com
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Service\Test\Proxy\Remote;
|
|
|
|
use App\Interface\Test\Proxy\OrderInterface;
|
|
|
|
class LocalOrderService implements OrderInterface
|
|
{
|
|
/**
|
|
* 本地订单
|
|
* @param array $data
|
|
* @return array
|
|
*/
|
|
public function createOrder(array $data): array
|
|
{
|
|
return [
|
|
'order_id' => uniqid(),
|
|
'status' => 'created',
|
|
];
|
|
}
|
|
} |