30 lines
601 B
PHP
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',
|
|
];
|
|
}
|
|
} |