classMethod($class, $method, $command); $className = $namespace . $class; new Result( Singleton::class($className)->$method(...$parameters) ); } /** * protected class method * * @param string &$class * @param string &$method * * @return void */ protected function classMethod(&$class = NULL, &$method = NULL, $command = NULL) { $commandEx = explode(':', (string) $command); $class = $commandEx[0]; $method = $commandEx[1] ?? NULL; } }