OptionsArray
final class OptionsArray implements Component (View source)
Parses a list of options.
Methods
No description
Builds the string representation of a component of this type.
Checks if it has the specified option and returns it value or true.
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()}.
mixed
has(string $key, bool $getExpr = false)
Checks if it has the specified option and returns it value or true.
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