OptionsArray
final class OptionsArray implements Component (View source)
Methods
No description
Builds the string representation of a component of this type.
No description
Checks if it has the specified option and returns its value.
Removes the option from the array.
Merges the specified options with these ones. Values with same ID will be replaced.
Checks tf there are no options set.
No description
Details
__construct(array $options = [])
No description
string
build()
Builds the string representation of a component of this type.
In other words, this function represents the inverse function of {\PhpMyAdmin\SqlParser\Component::parse()}.
bool
has(string $key)
No description
Expression
get(string $key, bool $getExpr = false)
Checks if it has the specified option and returns its value.
bool
remove(string $key)
Removes the option from the array.
void
merge(OptionsArray $options)
Merges the specified options with these ones. Values with same ID will be replaced.
bool
isEmpty()
Checks tf there are no options set.
string
__toString()
No description