diff --git a/src/support/src/Facades/DB.php b/src/support/src/Facades/DB.php index d1f871177..93d748bea 100644 --- a/src/support/src/Facades/DB.php +++ b/src/support/src/Facades/DB.php @@ -4,13 +4,12 @@ namespace Hypervel\Support\Facades; -use Closure; use Hyperf\DbConnection\Db as HyperfDb; /** * @method static void beforeExecuting(\Closure $closure) - * @method static \Hyperf\Database\Query\Builder table(\Hyperf\Database\Query\Expression|string $table) - * @method static \Hyperf\Database\Query\Expression raw($value) + * @method static \Hyperf\Database\Query\Builder table((\Hyperf\Database\Query\Expression|string) $table) + * @method static \Hyperf\Database\Query\Expression raw(mixed $value) * @method static mixed selectOne(string $query, array $bindings = [], bool $useReadPdo = true) * @method static array select(string $query, array $bindings = [], bool $useReadPdo = true) * @method static \Generator cursor(string $query, array $bindings = [], bool $useReadPdo = true) @@ -21,12 +20,12 @@ * @method static int affectingStatement(string $query, array $bindings = []) * @method static bool unprepared(string $query) * @method static array prepareBindings(array $bindings) - * @method static mixed transaction(Closure $callback, int $attempts = 1) + * @method static mixed transaction(\Closure $callback, int $attempts = 1) * @method static void beginTransaction() * @method static void rollBack() * @method static void commit() * @method static int transactionLevel() - * @method static array pretend(Closure $callback) + * @method static array pretend(\Closure $callback) * @method static \Hyperf\Database\ConnectionInterface connection(?string $pool = null) * * @see \Hyperf\DbConnection\Db diff --git a/src/support/src/Facades/Validator.php b/src/support/src/Facades/Validator.php index 30a349475..a3e570305 100644 --- a/src/support/src/Facades/Validator.php +++ b/src/support/src/Facades/Validator.php @@ -7,11 +7,24 @@ use Hypervel\Validation\Contracts\Factory as FactoryContract; /** + * @method static \Hypervel\Validation\Validator make(array $data, array $rules, array $messages = [], array $attributes = []) + * @method static array validate(array $data, array $rules, array $messages = [], array $attributes = []) + * @method static void extend(string $rule, \Closure|string $extension, string|null $message = null) + * @method static void extendImplicit(string $rule, \Closure|string $extension, string|null $message = null) + * @method static void extendDependent(string $rule, \Closure|string $extension, string|null $message = null) + * @method static void replacer(string $rule, \Closure|string $replacer) + * @method static void includeUnvalidatedArrayKeys() + * @method static void excludeUnvalidatedArrayKeys() + * @method static void resolver(\Closure $resolver) + * @method static \Hypervel\Translation\Contracts\Translator getTranslator() + * @method static \Hypervel\Validation\PresenceVerifierInterface getPresenceVerifier() + * @method static void setPresenceVerifier(\Hypervel\Validation\PresenceVerifierInterface $presenceVerifier) + * @method static \Psr\Container\ContainerInterface|null getContainer() + * @method static \Hypervel\Validation\Factory setContainer(\Psr\Container\ContainerInterface $container) * @method static array parseData(array $data) * @method static \Hypervel\Validation\Validator after(callable|array|string $callback) * @method static bool passes() * @method static bool fails() - * @method static array validate() * @method static array validateWithBag(string $errorBag) * @method static \Hypervel\Support\ValidatedInput|array safe(array|null $keys = null) * @method static array validated() @@ -49,14 +62,10 @@ * @method static \Hypervel\Validation\Validator setValueNames(array $values) * @method static \Hypervel\Validation\Validator addCustomValues(array $customValues) * @method static void setFallbackMessages(array $messages) - * @method static \Hypervel\Validation\PresenceVerifierInterface getPresenceVerifier(string|null $connection = null) - * @method static void setPresenceVerifier(\Hypervel\Validation\PresenceVerifierInterface $presenceVerifier) * @method static string getException() * @method static \Hypervel\Validation\Validator setException(string|\Throwable $exception) * @method static \Hypervel\Validation\Validator ensureExponentWithinAllowedRangeUsing(\Closure $callback) - * @method static \Hypervel\Translation\Contracts\Translator getTranslator() * @method static void setTranslator(\Hypervel\Translation\Contracts\Translator $translator) - * @method static void setContainer(\Psr\Container\ContainerInterface $container) * @method static string makeReplacements(string $message, string $attribute, string $rule, array $parameters) * @method static string getDisplayableAttribute(string $attribute) * @method static string getDisplayableValue(string $attribute, mixed $value) @@ -176,6 +185,7 @@ * @method static array|null parseNamedParameters(array $parameters) * @method static void requireParameterCount(int $count, array $parameters, string $rule) * + * @see \Hypervel\Validation\Factory * @see \Hypervel\Validation\Validator */ class Validator extends Facade