- Full name:
\App\Infrastructure\Services\User\UserAttributeBag - This class is marked as final and can't be subclassed
- This class is a Final class
Properties
siteId
userId
items
Methods
__construct
Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$items |
array |
fromArray
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$attributes |
array |
empty
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string |
fromJson
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$siteId |
string | |
$userId |
string | |
$json |
?string |
siteId
userId
has
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string |
get
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string | |
$default |
mixed |
getPath
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$default |
mixed |
string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$default |
string |
int
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$default |
int |
bool
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$default |
bool |
array
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$default |
array |
set
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string | |
$value |
mixed |
setPath
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string | |
$value |
mixed |
remove
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string |
removePath
Parameters:
| Parameter | Type | Description |
|---|---|---|
$path |
string |
merge
Parameters:
| Parameter | Type | Description |
|---|---|---|
$values |
array |
mergeRecursive
Parameters:
| Parameter | Type | Description |
|---|---|---|
$values |
array |
toArray
toJson
doMergeRecursive
private doMergeRecursive(array<string,mixed> $left, array<string,mixed> $right): array<string,mixed>
Parameters:
| Parameter | Type | Description |
|---|---|---|
$left |
array |
|
$right |
array |