Files
hyperf_test/app/Service/Test/Proxy/Cache/UserInfoService.php
2025-09-07 13:10:17 +08:00

30 lines
601 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\Cache;
use App\Interface\Test\Proxy\UserInfoInterface;
class UserInfoService implements UserInfoInterface
{
/**
* @param int $userId
* @return array
*/
public function getUserInfo(int $userId): array
{
return [
'userId' => $userId,
'name' => 'User name'.$userId,
'email' => 'user'.$userId.'@email.com',
];
}
}