func = $func; } /** @var object */ private $dest; function setDest($dest): void { if (!is_object($dest)) $dest = null; $this->dest = $dest; } function getCommands(): ?array { return null; } private $func; function getCommandDefs(string $command, bool $virtual): ?array { $func = $this->func; $func_args = [$command]; nur_func::check_func($func, $this->dest, $func_args); return nur_func::call($func, ...$func_args); } }