Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/support/src/Facades/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
20 changes: 15 additions & 5 deletions src/support/src/Facades/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down