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