ShellArguments
MMO\core\server · 1 symbol · generated 30 Sep 2026
ShellArguments
ShellRequest.php:17Parsed command-line arguments (options/flags), as used by ShellRequest's body.
- Namespace
MMO\core\server- Implements
- iArray, JsonSerializable, Stringable
- Uses traits
- tArray
Index
| content | ||
| clear() | Empty the underlying content, keeping the object itself. | |
| count() | \Countable::count | |
| getIterator() | \IteratorAggregate::getIterator | |
| getOption($opt, $default, $key) | ||
| hasOptions($opts) | Test if request as options set. | |
| isEmpty() | ||
| jsonSerialize() | ||
| keys() | ||
| loadArray($data) | Load every entry of a plain array into the content, through offsetSet (so any offsetSet() override defined by the class using this trait, e.g. | |
| offsetExists($key) | \ArrayAccess::offsetExists | |
| offsetGet($key) | \ArrayAccess::offsetGet | |
| offsetSet($key, $value) | \ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array. | |
| offsetUnset($key) | \ArrayAccess::offsetUnset -- on a list (sequential integer keys, as produced by $bag[] = ...), the element is spliced out (closing the gap and reindexing), matching \unset() semantics on a plain … | |
| setContent($args) | ||
| toArray() | Convert the content to a plain array, recursively converting any nested iArray value (e.g. | |
| __construct($args) | ||
| __toString() |
Properties1
content
Methods17
clear()
tArray.php:25Empty the underlying content, keeping the object itself.
| returns |
count()
tArray.php:90\Countable::count
| returns | int |
getIterator()
tArray.php:97\IteratorAggregate::getIterator
| returns | Traversable |
getOption($opt, $default, $key)
ShellRequest.php:39hasOptions($opts)
ShellRequest.php:66Test if request as options set.
| ...$opts | can be a string or an array (treated as or). | |
| returns | bool | [description] |
isEmpty()
tArray.php:33| returns | true if the underlying content has no elements |
jsonSerialize()
ShellRequest.php:85| returns | mixed | the raw option map. |
keys()
tArray.php:82| returns | array | the list of keys currently set |
loadArray($data)
tArray.php:71Load every entry of a plain array into the content, through offsetSet (so any offsetSet() override defined by the class using this trait, e.g. for validation or type coercion, is honored for every entry).
offsetExists($key)
tArray.php:130\ArrayAccess::offsetExists
offsetGet($key)
tArray.php:115\ArrayAccess::offsetGet
offsetSet($key, $value)
tArray.php:122\ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array.
offsetUnset($key)
tArray.php:107\ArrayAccess::offsetUnset -- on a list (sequential integer keys, as produced by $bag[] = ...), the element is spliced out (closing the gap and reindexing), matching \unset() semantics on a plain PHP list; on an associative array, the key is simply removed.
setContent($args)
ShellRequest.php:29toArray()
tArray.php:56Convert the content to a plain array, recursively converting any nested iArray value (e.g. another object using this same trait) into its own plain-array form as well.
| returns | array |
__construct($args)
ShellRequest.php:21__toString()
ShellRequest.php:80| returns | string | the options re-serialized back into a shell argument string. |