Methods |
public
|
__construct(array $parameters = [])
|
#
|
public
|
all(string|null $key = null): array
Returns the parameters.
Parameters
$key |
The name of the parameter to return or null to get them all
|
|
#
|
public
|
keys(): array
Returns the parameter keys.
Returns the parameter keys.
|
#
|
public
|
replace(array $parameters = []): void
Replaces the current parameters by a new set.
Replaces the current parameters by a new set.
Overriden by
|
#
|
public
|
add(array $parameters = []): void
Adds parameters.
|
#
|
public
|
get(string $key, mixed $default = null): mixed
|
#
|
public
|
set(string $key, mixed $value): void
|
#
|
public
|
has(string $key): bool
Returns true if the parameter is defined.
Returns true if the parameter is defined.
|
#
|
public
|
remove(string $key): void
Removes a parameter.
|
#
|
public
|
getAlpha(string $key, string $default = ''): string
Returns the alphabetic characters of the parameter value.
Returns the alphabetic characters of the parameter value.
|
#
|
public
|
getAlnum(string $key, string $default = ''): string
Returns the alphabetic characters and digits of the parameter value.
Returns the alphabetic characters and digits of the parameter value.
|
#
|
public
|
getDigits(string $key, string $default = ''): string
Returns the digits of the parameter value.
Returns the digits of the parameter value.
|
#
|
public
|
getString(string $key, string $default = ''): string
Returns the parameter as string.
Returns the parameter as string.
Overriden by
|
#
|
public
|
getInt(string $key, int $default = 0): int
Returns the parameter value converted to integer.
Returns the parameter value converted to integer.
|
#
|
public
|
getBoolean(string $key, bool $default = false): bool
Returns the parameter value converted to boolean.
Returns the parameter value converted to boolean.
|
#
|
public
|
getEnum<T is BackedEnum>(string $key, class-string<T> $class, ?T $default = null): ?T
Returns the parameter value converted to an enum.
Returns the parameter value converted to an enum.
Overriden by
|
#
|
public
|
filter(
string $key,
mixed $default = null,
int $filter = FILTER_DEFAULT,
int|array{flags?: int, options?: array} $options = [],
): mixed
Filter key.
Parameters
$filter |
FILTER_* constant
|
$options |
Flags from FILTER_* constants
|
Overriden by
|
#
|
public
|
getIterator(): ArrayIterator<string, mixed>
Returns an iterator for parameters.
Returns an iterator for parameters.
Implements
|
#
|
public
|
count(): int
Returns the number of parameters.
Returns the number of parameters.
Implements
|
#
|