diff --git a/bin/generate-facade-docs.sh b/bin/generate-facade-docs.sh new file mode 100755 index 000000000..9c0524c05 --- /dev/null +++ b/bin/generate-facade-docs.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +cp composer.json composer.json.bak +cp composer.lock composer.lock.bak + +composer config repositories.facade-documenter vcs git@github.com:hypervel/facade-documenter.git +composer require --dev hypervel/facade-documenter:dev-main +find src/support/src/Facades -type f -name '*.php' -printf '%f\n' | sort | grep -v Facade | sed -E 's/(.+)\.php/Hypervel\\\\Support\\\\Facades\\\\\1/' | xargs php -f vendor/bin/facade.php + +mv composer.json.bak composer.json +mv composer.lock.bak composer.lock +composer install diff --git a/src/console/src/Scheduling/Schedule.php b/src/console/src/Scheduling/Schedule.php index 1ac762715..0722056f3 100644 --- a/src/console/src/Scheduling/Schedule.php +++ b/src/console/src/Scheduling/Schedule.php @@ -27,7 +27,7 @@ use RuntimeException; /** - * @mixin PendingEventAttributes + * @mixin \Hypervel\Console\Scheduling\PendingEventAttributes */ class Schedule { diff --git a/src/support/src/Facades/App.php b/src/support/src/Facades/App.php index 62e237d46..468ad1285 100644 --- a/src/support/src/Facades/App.php +++ b/src/support/src/Facades/App.php @@ -15,6 +15,7 @@ * @method static string basePath(string $path = '') * @method static string resourcePath(string $path = '') * @method static string viewPath(string $path = '') + * @method static string storagePath(string $path = '') * @method static string joinPaths(string $basePath, string $path = '') * @method static string|bool environment(array|string ...$environments) * @method static bool isLocal() @@ -28,6 +29,8 @@ * @method static \Hypervel\Support\ServiceProvider resolveProvider(string $provider) * @method static bool isBooted() * @method static void boot() + * @method static void booting(callable $callback) + * @method static void booted(callable $callback) * @method static void abort(int $code, string $message = '', array $headers = []) * @method static array getLoadedProviders() * @method static bool providerIsLoaded(string $provider) diff --git a/src/support/src/Facades/Auth.php b/src/support/src/Facades/Auth.php index dc7dd4aff..31c130b26 100644 --- a/src/support/src/Facades/Auth.php +++ b/src/support/src/Facades/Auth.php @@ -16,6 +16,7 @@ * @method static string getDefaultDriver() * @method static void shouldUse(string|null $name) * @method static void setDefaultDriver(string $name) + * @method static \Hypervel\Auth\AuthManager viaRequest(string $driver, callable $callback) * @method static \Closure userResolver() * @method static \Hypervel\Auth\AuthManager resolveUsersUsing(\Closure $userResolver) * @method static array getGuards() diff --git a/src/support/src/Facades/File.php b/src/support/src/Facades/File.php index 4b0f35bd2..f07f6ea83 100644 --- a/src/support/src/Facades/File.php +++ b/src/support/src/Facades/File.php @@ -7,6 +7,7 @@ use Hypervel\Filesystem\Filesystem; /** + * @method static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true) * @method static bool exists(string $path) * @method static string get(string $path, bool $lock = false) * @method static string sharedGet(string $path) diff --git a/src/support/src/Facades/Http.php b/src/support/src/Facades/Http.php index ace71cc37..e5411000f 100644 --- a/src/support/src/Facades/Http.php +++ b/src/support/src/Facades/Http.php @@ -34,7 +34,6 @@ * @method static \Hypervel\HttpClient\Factory registerConnection(string $name, array $config = []) * @method static \GuzzleHttp\ClientInterface getClient(string|null $connection, \GuzzleHttp\HandlerStack $handlerStack, array|null $config = null) * @method static \GuzzleHttp\ClientInterface createClient(\GuzzleHttp\HandlerStack $handlerStack) - * @method static array getConfig(string $name) * @method static array getConnectionConfigs() * @method static array getConnectionConfig(string $name) * @method static \Hypervel\HttpClient\Factory setConnectionConfig(string $name, array $config) diff --git a/src/support/src/Facades/Process.php b/src/support/src/Facades/Process.php index 3586ecc7f..57083dd0c 100644 --- a/src/support/src/Facades/Process.php +++ b/src/support/src/Facades/Process.php @@ -16,16 +16,15 @@ * @method static \Hypervel\Process\PendingProcess idleTimeout(int $timeout) * @method static \Hypervel\Process\PendingProcess forever() * @method static \Hypervel\Process\PendingProcess env(array $environment) - * @method static \Hypervel\Process\PendingProcess input(\Traversable|resource|string|int|float|bool|null $input) + * @method static \Hypervel\Process\PendingProcess input(null|bool|float|int|resource|string|\Traversable $input) * @method static \Hypervel\Process\PendingProcess quietly() * @method static \Hypervel\Process\PendingProcess tty(bool $tty = true) * @method static \Hypervel\Process\PendingProcess options(array $options) * @method static \Hypervel\Process\Contracts\ProcessResult run(array|string|null $command = null, callable|null $output = null) - * @method static \Hypervel\Process\InvokedProcess start(array|string|null $command = null, callable|null $output = null) - * @method static bool supportsTty() + * @method static \Hypervel\Process\Contracts\InvokedProcess start(array|string|null $command = null, callable|null $output = null) * @method static \Hypervel\Process\PendingProcess withFakeHandlers(array $fakeHandlers) - * @method static \Hypervel\Process\PendingProcess|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null) - * @method static \Hypervel\Process\PendingProcess|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null) + * @method static \Hypervel\Process\PendingProcess|mixed when(null|\Closure|mixed $value = null, null|callable $callback = null, null|callable $default = null, null|\Closure|mixed $value = null) + * @method static \Hypervel\Process\PendingProcess|mixed unless(null|\Closure|mixed $value = null, null|callable $callback = null, null|callable $default = null, null|\Closure|mixed $value = null) * @method static \Hypervel\Process\FakeProcessResult result(array|string $output = '', array|string $errorOutput = '', int $exitCode = 0) * @method static \Hypervel\Process\FakeProcessDescription describe() * @method static \Hypervel\Process\FakeProcessSequence sequence(array $processes = []) @@ -43,11 +42,10 @@ * @method static \Hypervel\Process\Contracts\ProcessResult pipe(callable|array $callback, callable|null $output = null) * @method static \Hypervel\Process\ProcessPoolResults concurrently(callable $callback, callable|null $output = null) * @method static \Hypervel\Process\PendingProcess newPendingProcess() - * @method static void macro(string $name, object|callable $macro) + * @method static mixed macroCall(string $method, array $parameters) + * @method static void macro(string $name, callable|object $macro) * @method static void mixin(object $mixin, bool $replace = true) * @method static bool hasMacro(string $name) - * @method static void flushMacros() - * @method static mixed macroCall(string $method, array $parameters) * * @see \Hypervel\Process\PendingProcess * @see \Hypervel\Process\Factory diff --git a/src/support/src/Facades/Queue.php b/src/support/src/Facades/Queue.php index a25bf823a..d29f70540 100644 --- a/src/support/src/Facades/Queue.php +++ b/src/support/src/Facades/Queue.php @@ -48,7 +48,7 @@ * @method static mixed getJobExpiration(mixed $job) * @method static void createPayloadUsing(callable|null $callback) * @method static \Psr\Container\ContainerInterface getContainer() - * @method static void setContainer(\Psr\Container\ContainerInterface $container) + * @method static \Hypervel\Queue\Queue setContainer(\Psr\Container\ContainerInterface $container) * @method static \Hypervel\Support\Testing\Fakes\QueueFake except(array|string $jobsToBeQueued) * @method static void assertPushed(\Closure|string $job, callable|int|null $callback = null) * @method static void assertPushedOn(string|null $queue, \Closure|string $job, callable|null $callback = null) diff --git a/src/support/src/Facades/Redis.php b/src/support/src/Facades/Redis.php index 04a4cb718..7ebfb9d34 100644 --- a/src/support/src/Facades/Redis.php +++ b/src/support/src/Facades/Redis.php @@ -8,247 +8,14 @@ /** * @method static \Hyperf\Redis\RedisProxy connection(string $name = 'default') + * @method static void subscribe(array|string $channels, \Closure $callback) + * @method static void psubscribe(array|string $channels, \Closure $callback) * @method static void scan(void $cursor, void ...$arguments) * @method static void hScan(void $key, void $cursor, void ...$arguments) * @method static void zScan(void $key, void $cursor, void ...$arguments) * @method static void sScan(void $key, void $cursor, void ...$arguments) * @method static array|\Redis pipeline(callable|null $callback = null) * @method static array|\Redis|\RedisCluster transaction(callable|null $callback = null) - * @method static mixed acl(string $subcmd, string ...$args) - * @method static \Redis|int|false append(string $key, mixed $value) - * @method static \Redis|bool auth(mixed $credentials) - * @method static \Redis|bool bgSave() - * @method static \Redis|bool bgrewriteaof() - * @method static \Redis|int|false bitcount(string $key, int $start = 0, int $end = -1, bool $bybit = false) - * @method static \Redis|int|false bitop(string $operation, string $deskey, string $srckey, string ...$other_keys) - * @method static \Redis|int|false bitpos(string $key, bool $bit, int $start = 0, int $end = -1, bool $bybit = false) - * @method static \Redis|array|false|null blPop(array|string $key_or_keys, string|int|float $timeout_or_key, mixed ...$extra_args) - * @method static \Redis|array|false|null brPop(array|string $key_or_keys, string|int|float $timeout_or_key, mixed ...$extra_args) - * @method static \Redis|string|false brpoplpush(string $src, string $dst, int|float $timeout) - * @method static \Redis|array|false bzPopMax(array|string $key, string|int $timeout_or_key, mixed ...$extra_args) - * @method static \Redis|array|false bzPopMin(array|string $key, string|int $timeout_or_key, mixed ...$extra_args) - * @method static \Redis|array|false|null bzmpop(float $timeout, array $keys, string $from, int $count = 1) - * @method static \Redis|array|false|null zmpop(array $keys, string $from, int $count = 1) - * @method static \Redis|array|false|null blmpop(float $timeout, array $keys, string $from, int $count = 1) - * @method static \Redis|array|false|null lmpop(array $keys, string $from, int $count = 1) - * @method static bool clearLastError() - * @method static mixed client(string $opt, mixed ...$args) - * @method static bool close() - * @method static mixed command(string|null $opt = null, mixed ...$args) - * @method static mixed config(string $operation, array|string|null $key_or_settings = null, string|null $value = null) - * @method static bool connect(string $host, int $port = 6379, float $timeout = 0, string|null $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array|null $context = null) - * @method static \Redis|bool copy(string $src, string $dst, array|null $options = null) - * @method static \Redis|int|false dbSize() - * @method static \Redis|string debug(string $key) - * @method static \Redis|int|false decr(string $key, int $by = 1) - * @method static \Redis|int|false decrBy(string $key, int $value) - * @method static \Redis|int|false del(array|string $key, string ...$other_keys) - * @method static \Redis|bool discard() - * @method static \Redis|string dump(string $key) - * @method static \Redis|string|false echo(string $str) - * @method static mixed eval(string $script, array $args = [], int $num_keys = 0) - * @method static mixed eval_ro(string $script_sha, array $args = [], int $num_keys = 0) - * @method static mixed evalsha(string $sha1, array $args = [], int $num_keys = 0) - * @method static mixed evalsha_ro(string $sha1, array $args = [], int $num_keys = 0) - * @method static \Redis|array|false exec() - * @method static \Redis|int|bool exists(mixed $key, mixed ...$other_keys) - * @method static \Redis|bool expire(string $key, int $timeout, string|null $mode = null) - * @method static \Redis|bool expireAt(string $key, int $timestamp, string|null $mode = null) - * @method static \Redis|bool failover(array|null $to = null, bool $abort = false, int $timeout = 0) - * @method static \Redis|int|false expiretime(string $key) - * @method static \Redis|int|false pexpiretime(string $key) - * @method static mixed fcall(string $fn, array $keys = [], array $args = []) - * @method static mixed fcall_ro(string $fn, array $keys = [], array $args = []) - * @method static \Redis|bool flushAll(bool|null $sync = null) - * @method static \Redis|bool flushDB(bool|null $sync = null) - * @method static \Redis|array|string|bool function(string $operation, mixed ...$args) - * @method static \Redis|int|false geoadd(string $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options) - * @method static \Redis|float|false geodist(string $key, string $src, string $dst, string|null $unit = null) - * @method static \Redis|array|false geohash(string $key, string $member, string ...$other_members) - * @method static \Redis|array|false geopos(string $key, string $member, string ...$other_members) - * @method static mixed georadius(string $key, float $lng, float $lat, float $radius, string $unit, array $options = []) - * @method static mixed georadius_ro(string $key, float $lng, float $lat, float $radius, string $unit, array $options = []) - * @method static mixed georadiusbymember(string $key, string $member, float $radius, string $unit, array $options = []) - * @method static mixed georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = []) - * @method static array geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = []) - * @method static \Redis|array|int|false geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = []) - * @method static mixed get(string $key) - * @method static mixed getAuth() - * @method static \Redis|int|false getBit(string $key, int $idx) - * @method static \Redis|string|bool getEx(string $key, array $options = []) - * @method static int getDBNum() - * @method static \Redis|string|bool getDel(string $key) - * @method static string getHost() - * @method static string|null getLastError() - * @method static int getMode() - * @method static mixed getOption(int $option) - * @method static string|null getPersistentID() - * @method static int getPort() - * @method static \Redis|string|false getRange(string $key, int $start, int $end) - * @method static \Redis|array|string|int|false lcs(string $key1, string $key2, array|null $options = null) - * @method static float getReadTimeout() - * @method static \Redis|string|false getset(string $key, mixed $value) - * @method static float|false getTimeout() - * @method static array getTransferredBytes() - * @method static void clearTransferredBytes() - * @method static \Redis|int|false hDel(string $key, string $field, string ...$other_fields) - * @method static \Redis|bool hExists(string $key, string $field) - * @method static mixed hGet(string $key, string $member) - * @method static \Redis|array|false hGetAll(string $key) - * @method static \Redis|int|false hIncrBy(string $key, string $field, int $value) - * @method static \Redis|float|false hIncrByFloat(string $key, string $field, float $value) - * @method static \Redis|array|false hKeys(string $key) - * @method static \Redis|int|false hLen(string $key) - * @method static \Redis|array|false hMget(string $key, array $fields) - * @method static \Redis|bool hMset(string $key, array $fieldvals) - * @method static \Redis|array|string hRandField(string $key, array|null $options = null) - * @method static \Redis|int|false hSet(string $key, string $member, mixed $value) - * @method static \Redis|bool hSetNx(string $key, string $field, string $value) - * @method static \Redis|int|false hStrLen(string $key, string $field) - * @method static \Redis|array|false hVals(string $key) - * @method static \Redis|array|bool hscan(string $key, int|null $iterator, string|null $pattern = null, int $count = 0) - * @method static \Redis|int|false incr(string $key, int $by = 1) - * @method static \Redis|int|false incrBy(string $key, int $value) - * @method static \Redis|float|false incrByFloat(string $key, float $value) - * @method static \Redis|array|false info(string ...$sections) - * @method static bool isConnected() - * @method static void keys(string $pattern) - * @method static void lInsert(string $key, string $pos, mixed $pivot, mixed $value) - * @method static \Redis|int|false lLen(string $key) - * @method static \Redis|string|false lMove(string $src, string $dst, string $wherefrom, string $whereto) - * @method static \Redis|string|false blmove(string $src, string $dst, string $wherefrom, string $whereto, float $timeout) - * @method static \Redis|array|string|bool lPop(string $key, int $count = 0) - * @method static \Redis|array|int|bool|null lPos(string $key, mixed $value, array|null $options = null) - * @method static \Redis|int|false lPush(string $key, mixed ...$elements) - * @method static \Redis|int|false rPush(string $key, mixed ...$elements) - * @method static \Redis|int|false lPushx(string $key, mixed $value) - * @method static \Redis|int|false rPushx(string $key, mixed $value) - * @method static \Redis|bool lSet(string $key, int $index, mixed $value) - * @method static int lastSave() - * @method static mixed lindex(string $key, int $index) - * @method static \Redis|array|false lrange(string $key, int $start, int $end) - * @method static \Redis|int|false lrem(string $key, mixed $value, int $count = 0) - * @method static \Redis|bool ltrim(string $key, int $start, int $end) - * @method static \Redis|array mget(array $keys) - * @method static \Redis|bool migrate(string $host, int $port, array|string $key, int $dstdb, int $timeout, bool $copy = false, bool $replace = false, mixed $credentials = null) - * @method static \Redis|bool move(string $key, int $index) - * @method static \Redis|bool mset(array $key_values) - * @method static \Redis|bool msetnx(array $key_values) - * @method static \Redis|bool multi(int $value = 1) - * @method static \Redis|string|int|false object(string $subcommand, string $key) - * @method static bool pconnect(string $host, int $port = 6379, float $timeout = 0, string|null $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array|null $context = null) - * @method static \Redis|bool persist(string $key) - * @method static bool pexpire(string $key, int $timeout, string|null $mode = null) - * @method static \Redis|bool pexpireAt(string $key, int $timestamp, string|null $mode = null) - * @method static \Redis|int pfadd(string $key, array $elements) - * @method static \Redis|int|false pfcount(array|string $key_or_keys) - * @method static \Redis|bool pfmerge(string $dst, array $srckeys) - * @method static \Redis|string|bool ping(string|null $message = null) - * @method static \Redis|bool psetex(string $key, int $expire, mixed $value) - * @method static bool psubscribe(array $patterns, callable $cb) - * @method static \Redis|int|false pttl(string $key) - * @method static \Redis|int|false publish(string $channel, string $message) - * @method static mixed pubsub(string $command, mixed $arg = null) - * @method static \Redis|array|bool punsubscribe(array $patterns) - * @method static \Redis|array|string|bool rPop(string $key, int $count = 0) - * @method static \Redis|string|false randomKey() - * @method static mixed rawcommand(string $command, mixed ...$args) - * @method static \Redis|bool rename(string $old_name, string $new_name) - * @method static \Redis|bool renameNx(string $key_src, string $key_dst) - * @method static \Redis|bool reset() - * @method static \Redis|bool restore(string $key, int $ttl, string $value, array|null $options = null) - * @method static mixed role() - * @method static \Redis|string|false rpoplpush(string $srckey, string $dstkey) - * @method static \Redis|int|false sAdd(string $key, mixed $value, mixed ...$other_values) - * @method static int sAddArray(string $key, array $values) - * @method static \Redis|array|false sDiff(string $key, string ...$other_keys) - * @method static \Redis|int|false sDiffStore(string $dst, string $key, string ...$other_keys) - * @method static \Redis|array|false sInter(array|string $key, string ...$other_keys) - * @method static \Redis|int|false sintercard(array $keys, int $limit = -1) - * @method static \Redis|int|false sInterStore(array|string $key, string ...$other_keys) - * @method static \Redis|array|false sMembers(string $key) - * @method static \Redis|array|false sMisMember(string $key, string $member, string ...$other_members) - * @method static \Redis|bool sMove(string $src, string $dst, mixed $value) - * @method static \Redis|array|string|false sPop(string $key, int $count = 0) - * @method static \Redis|array|string|false sRandMember(string $key, int $count = 0) - * @method static \Redis|array|false sUnion(string $key, string ...$other_keys) - * @method static \Redis|int|false sUnionStore(string $dst, string $key, string ...$other_keys) - * @method static \Redis|bool save() - * @method static \Redis|int|false scard(string $key) - * @method static mixed script(string $command, mixed ...$args) - * @method static \Redis|bool select(int $db) - * @method static \Redis|string|bool set(string $key, mixed $value, mixed $options = null) - * @method static \Redis|int|false setBit(string $key, int $idx, bool $value) - * @method static \Redis|int|false setRange(string $key, int $index, string $value) - * @method static bool setOption(int $option, mixed $value) - * @method static void setex(string $key, int $expire, mixed $value) - * @method static \Redis|bool setnx(string $key, mixed $value) - * @method static \Redis|bool sismember(string $key, mixed $value) - * @method static \Redis|bool replicaof(string|null $host = null, int $port = 6379) - * @method static \Redis|int|false touch(array|string $key_or_array, string ...$more_keys) - * @method static mixed slowlog(string $operation, int $length = 0) - * @method static mixed sort(string $key, array|null $options = null) - * @method static mixed sort_ro(string $key, array|null $options = null) - * @method static \Redis|int|false srem(string $key, mixed $value, mixed ...$other_values) - * @method static array|false sscan(string $key, int|null $iterator, string|null $pattern = null, int $count = 0) - * @method static bool ssubscribe(array $channels, callable $cb) - * @method static \Redis|int|false strlen(string $key) - * @method static bool subscribe(array $channels, callable $cb) - * @method static \Redis|array|bool sunsubscribe(array $channels) - * @method static \Redis|bool swapdb(int $src, int $dst) - * @method static \Redis|array time() - * @method static \Redis|int|false ttl(string $key) - * @method static \Redis|int|false type(string $key) - * @method static \Redis|int|false unlink(array|string $key, string ...$other_keys) - * @method static \Redis|array|bool unsubscribe(array $channels) - * @method static \Redis|bool unwatch() - * @method static \Redis|bool watch(array|string $key, string ...$other_keys) - * @method static int|false wait(int $numreplicas, int $timeout) - * @method static int|false xack(string $key, string $group, array $ids) - * @method static \Redis|string|false xadd(string $key, string $id, array $values, int $maxlen = 0, bool $approx = false, bool $nomkstream = false) - * @method static \Redis|array|bool xautoclaim(string $key, string $group, string $consumer, int $min_idle, string $start, int $count = -1, bool $justid = false) - * @method static \Redis|array|bool xclaim(string $key, string $group, string $consumer, int $min_idle, array $ids, array $options) - * @method static \Redis|int|false xdel(string $key, array $ids) - * @method static mixed xgroup(string $operation, string|null $key = null, string|null $group = null, string|null $id_or_consumer = null, bool $mkstream = false, int $entries_read = -2) - * @method static mixed xinfo(string $operation, string|null $arg1 = null, string|null $arg2 = null, int $count = -1) - * @method static \Redis|int|false xlen(string $key) - * @method static \Redis|array|false xpending(string $key, string $group, string|null $start = null, string|null $end = null, int $count = -1, string|null $consumer = null) - * @method static \Redis|array|bool xrange(string $key, string $start, string $end, int $count = -1) - * @method static \Redis|array|bool xread(array $streams, int $count = -1, int $block = -1) - * @method static \Redis|array|bool xreadgroup(string $group, string $consumer, array $streams, int $count = 1, int $block = 1) - * @method static \Redis|array|bool xrevrange(string $key, string $end, string $start, int $count = -1) - * @method static \Redis|int|false xtrim(string $key, string $threshold, bool $approx = false, bool $minid = false, int $limit = -1) - * @method static \Redis|int|float|false zAdd(string $key, array|float $score_or_options, mixed ...$more_scores_and_mems) - * @method static \Redis|int|false zCard(string $key) - * @method static \Redis|int|false zCount(string $key, string $start, string $end) - * @method static \Redis|float|false zIncrBy(string $key, float $value, mixed $member) - * @method static \Redis|int|false zLexCount(string $key, string $min, string $max) - * @method static \Redis|array|false zMscore(string $key, mixed $member, mixed ...$other_members) - * @method static \Redis|array|false zPopMax(string $key, int|null $count = null) - * @method static \Redis|array|false zPopMin(string $key, int|null $count = null) - * @method static \Redis|array|false zRange(string $key, string|int $start, string|int $end, array|bool|null $options = null) - * @method static \Redis|array|false zRangeByLex(string $key, string $min, string $max, int $offset = -1, int $count = -1) - * @method static \Redis|array|false zRangeByScore(string $key, string $start, string $end, array $options = []) - * @method static \Redis|int|false zrangestore(string $dstkey, string $srckey, string $start, string $end, array|bool|null $options = null) - * @method static \Redis|array|string zRandMember(string $key, array|null $options = null) - * @method static \Redis|int|false zRank(string $key, mixed $member) - * @method static \Redis|int|false zRem(mixed $key, mixed $member, mixed ...$other_members) - * @method static \Redis|int|false zRemRangeByLex(string $key, string $min, string $max) - * @method static \Redis|int|false zRemRangeByRank(string $key, int $start, int $end) - * @method static \Redis|int|false zRemRangeByScore(string $key, string $start, string $end) - * @method static \Redis|array|false zRevRange(string $key, int $start, int $end, mixed $scores = null) - * @method static \Redis|array|false zRevRangeByLex(string $key, string $max, string $min, int $offset = -1, int $count = -1) - * @method static \Redis|array|false zRevRangeByScore(string $key, string $max, string $min, array|bool $options = []) - * @method static \Redis|int|false zRevRank(string $key, mixed $member) - * @method static \Redis|float|false zScore(string $key, mixed $member) - * @method static \Redis|array|false zdiff(array $keys, array|null $options = null) - * @method static \Redis|int|false zdiffstore(string $dst, array $keys) - * @method static \Redis|array|false zinter(array $keys, array|null $weights = null, array|null $options = null) - * @method static \Redis|int|false zintercard(array $keys, int $limit = -1) - * @method static \Redis|int|false zinterstore(string $dst, array $keys, array|null $weights = null, string|null $aggregate = null) - * @method static \Redis|array|false zscan(string $key, int|null $iterator, string|null $pattern = null, int $count = 0) - * @method static \Redis|array|false zunion(array $keys, array|null $weights = null, array|null $options = null) - * @method static \Redis|int|false zunionstore(string $dst, array $keys, array|null $weights = null, string|null $aggregate = null) * * @see \Hypervel\Redis\Redis */ diff --git a/src/support/src/Facades/Request.php b/src/support/src/Facades/Request.php index ef9772d3b..ad5236ed7 100644 --- a/src/support/src/Facades/Request.php +++ b/src/support/src/Facades/Request.php @@ -53,6 +53,7 @@ * @method static string fullUrlWithQuery(array $query) * @method static string fullUrlWithoutQuery(array|string $keys) * @method static string method() + * @method static array headers() * @method static string|null bearerToken() * @method static string[] getAcceptableContentTypes() * @method static string|null getMimeType(string $format) diff --git a/src/support/src/Facades/Schedule.php b/src/support/src/Facades/Schedule.php index ce59849a5..f2e078a00 100644 --- a/src/support/src/Facades/Schedule.php +++ b/src/support/src/Facades/Schedule.php @@ -7,21 +7,20 @@ use Hypervel\Console\Scheduling\Schedule as ScheduleAccessor; /** - * @method static \Hypervel\Console\Scheduling\CallbackEvent call(string|callable $callback, array $parameters = []) + * @method static \Hypervel\Console\Scheduling\CallbackEvent call(callable|string $callback, array $parameters = []) * @method static \Hypervel\Console\Scheduling\Event command(string $command, array $parameters = []) * @method static \Hypervel\Console\Scheduling\CallbackEvent job(object|string $job, string|null $queue = null, string|null $connection = null) - * @method static \Hypervel\Console\Scheduling\Event exec(string $command, array $parameters = []) + * @method static \Hypervel\Console\Scheduling\Event exec(string $command, array $parameters = [], bool $isSystem = true) * @method static void group(\Closure $events) * @method static string compileArrayInput(string|int $key, array $value) * @method static bool serverShouldRun(\Hypervel\Console\Scheduling\Event $event, \DateTimeInterface $time) - * @method static \Hyperf\Collection\Collection dueEvents(\Hypervel\Contracts\Foundation\Application $app) - * @method static \Hypervel\Console\Scheduling\Event[] events() - * @method static \Hypervel\Console\Scheduling\Schedule useCache(string $store) - * @method static void macro(string $name, object|callable $macro) + * @method static \Hyperf\Collection\Collection dueEvents(\Hypervel\Foundation\Contracts\Application $app) + * @method static array events() + * @method static \Hypervel\Console\Scheduling\Schedule useCache(string|null $store) + * @method static mixed macroCall(string $method, array $parameters) + * @method static void macro(string $name, callable|object $macro) * @method static void mixin(object $mixin, bool $replace = true) * @method static bool hasMacro(string $name) - * @method static void flushMacros() - * @method static mixed macroCall(string $method, array $parameters) * @method static \Hypervel\Console\Scheduling\PendingEventAttributes withoutOverlapping(int $expiresAt = 1440) * @method static void mergeAttributes(\Hypervel\Console\Scheduling\Event $event) * @method static \Hypervel\Console\Scheduling\PendingEventAttributes user(string $user) @@ -52,7 +51,7 @@ * @method static \Hypervel\Console\Scheduling\PendingEventAttributes everyFifteenMinutes() * @method static \Hypervel\Console\Scheduling\PendingEventAttributes everyThirtyMinutes() * @method static \Hypervel\Console\Scheduling\PendingEventAttributes hourly() - * @method static \Hypervel\Console\Scheduling\PendingEventAttributes hourlyAt(array|string|int|int[] $offset) + * @method static \Hypervel\Console\Scheduling\PendingEventAttributes hourlyAt(array|int|int[]|string $offset) * @method static \Hypervel\Console\Scheduling\PendingEventAttributes everyOddHour(array|string|int $offset = 0) * @method static \Hypervel\Console\Scheduling\PendingEventAttributes everyTwoHours(array|string|int $offset = 0) * @method static \Hypervel\Console\Scheduling\PendingEventAttributes everyThreeHours(array|string|int $offset = 0) diff --git a/src/support/src/Facades/Schema.php b/src/support/src/Facades/Schema.php index 2fbabb89b..94156a127 100644 --- a/src/support/src/Facades/Schema.php +++ b/src/support/src/Facades/Schema.php @@ -7,33 +7,33 @@ use Hypervel\Database\Schema\SchemaProxy; /** + * @method static void defaultStringLength(int $length) * @method static bool hasTable(string $table) - * @method static bool createDatabase(string $name) - * @method static bool hasView(string $name) + * @method static bool hasColumn(string $table, string $column) + * @method static bool hasColumns(string $table, array $columns) + * @method static void whenTableHasColumn(string $table, string $column, \Closure $callback) + * @method static void whenTableDoesntHaveColumn(string $table, string $column, \Closure $callback) + * @method static array getTables() * @method static array getViews() - * @method static bool dropDatabaseIfExists(string $name) + * @method static bool hasView(string $view) + * @method static string getColumnType(string $table, string $column) * @method static array getColumnListing(string $table) - * @method static array getColumnTypeListing(string $table) - * @method static void dropAllTables() - * @method static void dropAllViews() - * @method static array getAllTables() - * @method static array getTables() - * @method static array getAllViews() + * @method static array getColumns() * @method static array getIndexes(string $table) * @method static array getIndexListing(string $table) - * @method static bool hasIndex(string $table, array|string $index, ?string $type = null) - * @method static bool hasColumn(string $table, string $column) - * @method static bool hasColumns(string $table, array $columns) - * @method static string getColumnType(string $table, string $column) + * @method static bool hasIndex(string $table, array|string $index, string|null $type = null) * @method static void table(string $table, \Closure $callback) - * @method static void create(string $table, \Closure $callback)) + * @method static void create(string $table, \Closure $callback) * @method static void drop(string $table) * @method static void dropIfExists(string $table) + * @method static void dropAllTables() + * @method static void dropAllViews() * @method static void rename(string $from, string $to) * @method static bool enableForeignKeyConstraints() * @method static bool disableForeignKeyConstraints() + * @method static array getForeignKeys(string $table) * @method static \Hyperf\Database\Connection getConnection() - * @method static Builder setConnection(\Hyperf\Database\Connection $connection) + * @method static \Hyperf\Database\Schema\Builder setConnection(\Hyperf\Database\Connection $connection) * @method static void blueprintResolver(\Closure $resolver) * * @see \Hyperf\Database\Schema\Builder diff --git a/src/support/src/Facades/Storage.php b/src/support/src/Facades/Storage.php index 4d09fb836..50b05ba18 100644 --- a/src/support/src/Facades/Storage.php +++ b/src/support/src/Facades/Storage.php @@ -33,6 +33,7 @@ * @method static \Hypervel\Filesystem\FilesystemManager removePoolable(string $driver) * @method static array getPoolables() * @method static \Hypervel\Filesystem\FilesystemManager setPoolables(array $poolables) + * @method static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true) * @method static bool exists(string $path) * @method static string get(string $path, bool $lock = false) * @method static string sharedGet(string $path) diff --git a/src/support/src/Facades/Validator.php b/src/support/src/Facades/Validator.php index 539d9e19e..7e47b478a 100644 --- a/src/support/src/Facades/Validator.php +++ b/src/support/src/Facades/Validator.php @@ -73,6 +73,7 @@ * @method static bool validateBetween(string $attribute, mixed $value, array $parameters) * @method static bool validateBoolean(string $attribute, mixed $value, array $parameters = []) * @method static bool validateConfirmed(string $attribute, mixed $value) + * @method static bool validateContains(string $attribute, mixed $value, array $parameters) * @method static bool validateDate(string $attribute, mixed $value) * @method static bool validateDateFormat(string $attribute, mixed $value, array $parameters) * @method static bool validateDateEquals(string $attribute, mixed $value, array $parameters) @@ -88,6 +89,7 @@ * @method static array parseTable(string $table) * @method static string getQueryColumn(array $parameters, string $attribute) * @method static string guessColumnForQuery(string $attribute) + * @method static bool validateExtensions(string $attribute, mixed $value, array $parameters) * @method static bool validateFile(string $attribute, mixed $value) * @method static bool validateFilled(string $attribute, mixed $value) * @method static bool validateGt(string $attribute, mixed $value, array $parameters) @@ -96,6 +98,7 @@ * @method static bool validateLte(string $attribute, mixed $value, array $parameters) * @method static bool validateLowercase(string $attribute, mixed $value, array $parameters) * @method static bool validateUppercase(string $attribute, mixed $value, array $parameters) + * @method static bool validateHexColor(string $attribute, mixed $value) * @method static bool validateImage(string $attribute, mixed $value) * @method static bool validateIn(string $attribute, mixed $value, array $parameters) * @method static bool validateInArray(string $attribute, mixed $value, array $parameters)