implements |
DataInterface, ArrayAccess<string, mixed> |
---|
Methods | ||
---|---|---|
public
|
__construct(array<string, mixed> $data = [])
|
# |
public
|
append(string $key, $value = null): void
|
# |
public
|
set(string $key, $value = null): void
|
# |
public
|
remove(string $key): void
|
# |
public
|
get(string $key, $default = null)
|
# |
public
|
has(string $key): bool
|
# |
public
|
getData(string $key): DataInterface
|
# |
public
|
import(array $data, int $mode = self::REPLACE): void
|
# |
public
|
importData(DataInterface $data, int $mode = self::REPLACE): void
|
# |
public
|
export(): array
|
# |
public
|
offsetExists($key): bool
|
# |
public
|
offsetGet($key): mixed
|
# |
public
|
offsetSet(string $key, mixed $value): void
|
# |
public
|
offsetUnset($key): void
|
# |
protected
static
|
keyToPathArray(string $path): string[]
|
# |
protected
static
|
formatPath(string|string[] $path): string
|
# |
Constants inherited from Dflydev\DotAccessData\DataInterface |
---|
|
Properties | |||
---|---|---|---|
protected
|
array<string, mixed>
|
$data
|
# |