public static function emptyParameter($name) { return new static("Parameter `{$name}` cannot be empty."); }
protected function guardAgainstIncompleteCredentials() { foreach (['userName', 'dbName', 'host'] as $requiredProperty) { if (empty($this->{$requiredProperty})) { throw CannotStartDump::emptyParameter($requiredProperty); } } }