InteractiveCommand
MMO\core\attributes · 1 symbol · generated 30 Sep 2026
InteractiveCommand
Command.php:35A Command exposed in aShellController's built-in interactive REPL: $cmd is what the user types to select it (matched as a required, constant first "argument" of the underlying route).
- Namespace
MMO\core\attributes- Extends
- Command
Index
Properties1
cmd
readonly- Type
- string
Methods1
__construct($cmd, $info, $body, $mediaTypes, $order)
Command.php:45Inherited members (53)
| Properties | Declared by | Description | |
|---|---|---|---|
body | APIRoute | ||
cookie | APIRoute | ||
fragment | APIRoute | ||
header | APIRoute | ||
info | APIRoute | ||
method | APIRoute | ||
opts | APIRoute | ||
order | APIRoute | ||
path | APIRoute | ||
query | APIRoute |
| Methods | Declared by | Description | |
|---|---|---|---|
addAPIParameter($parameters, $info) | APIRoute | ||
addAPIParameters($params, $in) | APIRoute | ||
addInfo($info, $default) | APIRoute | Add information to the route | |
addOptions($opts, $appendList) | APIRoute | Merge $opts into the existing options (through merge), rather than replacing them wholesale like setOptions. | |
api() | APIRoute | Build this route's OpenAPI operation object (path parameters, query/header/cookie parameters, request body, merged with any extra addInfo info). | |
clearOptions() | APIRoute | Empty the options bag. | |
createRequest($data, $method) | APIRoute | Build a real Request matching this route, useful to synthesize/test a call without going through HTTP. | |
debugName() | APIRoute | ||
getBody($data) | APIRoute | ||
getCookie($data) | APIRoute | ||
getFragment() | APIRoute | ||
getHeader($data) | APIRoute | ||
getInfo($key, $default) | APIRoute | ||
getMethod() | APIRoute | ||
getOperation() | APIRoute | ||
getOption($key, $default) | APIRoute | ||
getOptions() | APIRoute | ||
getOrder() | APIRoute | ||
getParameters($in, $data) | APIRoute | ||
getPath() | APIRoute | ||
getQuery($data) | APIRoute | ||
getUrl($data, $absolute) | APIRoute | Get path url. If no data are passed, it return a relative url with placeholders | |
hasInfo($key) | APIRoute | ||
isHidden() | APIRoute | ||
jsonSerialize() | APIRoute | ||
match($request, $matches) | APIRoute | Check if a request match this path. | |
setBasepath($path) | APIRoute | ||
setBody($value) | APIRoute | ||
setCookie($value) | APIRoute | ||
setFragment($fragment) | APIRoute | ||
setHeader($value) | APIRoute | ||
setMethod($method) | APIRoute | ||
setOperation($id) | APIRoute | ||
setOption($key, $value) | APIRoute | Set (or, with a null $value, remove) a single option. | |
setOptions($opts) | APIRoute | Replace the whole options bag. | |
setOrder($value) | APIRoute | ||
setParameters($in, $value) | APIRoute | Set parameters capture information | |
setPath($path) | APIRoute | Same as From, except wildcard are converted to placeholders | |
setQuery($value) | APIRoute | ||
setUrl($url) | APIRoute | Parse a full {method}|{path}?{query}#{fragment} route URL (see this class's own docblock for the format) and set every corresponding property (method, path, query, fragment) from it. | |
toLink($data, $rels) | APIRoute | ||
uid() | APIRoute | ||
__toString() | APIRoute |