AuthStorageMapper
extends SessionMapper
in package
FinalYes
Admin counterpart of {@see \App\Core\Base\Front\Models\Mappers\SessionMapper}.
Exists for the same reason as the admin ApiMapper/ApiRepository: each module loads
its base from its own namespace. The only responsibility is building an entity from a
session row.
Table of Contents
Properties
Methods
- __construct() : mixed
- loadStorage() : AuthSessionStorage|null
- initalizeEntity() : BaseEntity|null
Properties
$repository read-only
protected
AuthStorageRepository
$repository
Methods
__construct()
public
__construct(AuthStorageRepository $repository) : mixed
Parameters
- $repository : AuthStorageRepository
loadStorage()
public
loadStorage() : AuthSessionStorage|null
Return values
AuthSessionStorage|nullinitalizeEntity()
protected
initalizeEntity(array<string, mixed> $row) : BaseEntity|null
Parameters
- $row : array<string, mixed>