abstract |
|---|
readonly |
Immutable key-value bag with typed accessors.
This base class is used for both Ui5Args (runtime parameters) and Ui5Config (resolved settings). It assumes that all values have already been validated and cast by the respective Resolver.
Responsibilities:
Example:
$args = new Ui5Args(['year' => 2025, 'active' => true]);
$year = $args->int('year'); // 2025
$active = $args->bool('active'); // true
$missing = $args->string('foo', 'x'); // "x"
| Methods | ||
|---|---|---|
public
|
__construct(array<string, mixed> $data)
|
# |
public
|
all(): array
|
# |
public
|
get(string $key): mixed
|
# |
public
|
string(string $key): ?string
|
# |
public
|
int(string $key): ?int
|
# |
public
|
float(string $key): ?float
|
# |
public
|
bool(string $key): ?bool
|
# |
public
|
array(string $key): ?array
|
# |