public function __construct($namespace, array $restServices = [], array $rpcServices = [], $isVendor = null)
{
if (!class_exists($namespace . '\\Module')) {
throw new InvalidArgumentException(sprintf('Invalid module "%s"; no Module class exists for that module', $namespace));
}
$this->name = $namespace;
$this->namespace = $namespace;
$this->restServices = $restServices;
$this->rpcServices = $rpcServices;
$this->isVendor = is_bool($isVendor) ? $isVendor : null;
}