- Full name:
\App\Infrastructure\Services\User\UserAttributeManager - This class is marked as final and can't be subclassed
- This class is a Final class
Properties
repository
cache
Methods
__construct
public __construct(\App\Infrastructure\Services\User\UserAttributeRepository $repository, \Psr\SimpleCache\CacheInterface $cache): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$repository |
\App\Infrastructure\Services\User\UserAttributeRepository | |
$cache |
\Psr\SimpleCache\CacheInterface |
get
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$key |
string | |
$default |
mixed |
all
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
bag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
exists
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$key |
string |
create
Parameters:
| Parameter | Type | Description |
|---|---|---|
$attribute |
\App\Infrastructure\Services\User\UserAttributeBag |
createIfMissing
public createIfMissing(string $siteId, string $userId): ?\App\Infrastructure\Services\User\UserAttributeBag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
set
public set(string $siteId, string $userId, string $key, mixed $value): \App\Infrastructure\Services\User\UserAttributeBag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$key |
string | |
$value |
mixed |
remove
public remove(string $siteId, string $userId, string $key): \App\Infrastructure\Services\User\UserAttributeBag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$key |
string |
delete
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
merge
public merge(string $siteId, string $userId, array<string,mixed> $values): \App\Infrastructure\Services\User\UserAttributeBag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$values |
array |
mergeRecursive
public mergeRecursive(string $siteId, string $userId, array<string,mixed> $values): \App\Infrastructure\Services\User\UserAttributeBag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$values |
array |
replaceAll
public replaceAll(string $siteId, string $userId, string $value): \App\Infrastructure\Services\User\UserAttributeBag
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$value |
string |
warm
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
warmMany
public warmMany(list<array{site_id: string, user_id: string}> $pairs): array<string,\App\Infrastructure\Services\User\UserAttributeBag>
Parameters:
| Parameter | Type | Description |
|---|---|---|
$pairs |
list |
forget
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
load
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
warmWith
Parameters:
| Parameter | Type | Description |
|---|---|---|
$attribute |
\App\Infrastructure\Services\User\UserAttributeBag |