GetUserByIdUseCase
in package
Read onlyYes
Fetches user by id
Table of Contents
Properties
- $logger : LoggerInterface
- $repository : PDOUserRepository
Methods
- __construct() : mixed
- execute() : User
Properties
$logger
private
LoggerInterface
$logger
$repository
private
PDOUserRepository
$repository
Methods
__construct()
public
__construct(PDOUserRepository $repository, LoggerInterface $logger) : mixed
Parameters
- $repository : PDOUserRepository
- $logger : LoggerInterface
execute()
public
execute(int $id) : User
Parameters
- $id : int