| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?php
- /*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Symfony\Component\Cache\Traits;
- if (version_compare(phpversion('relay'), '0.8.1', '>=')) {
- /**
- * @internal
- */
- trait RelayProxyTrait
- {
- public function jsonArrAppend($key, $value_or_array, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonArrAppend(...\func_get_args());
- }
- public function jsonArrIndex($key, $path, $value, $start = 0, $stop = -1): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonArrIndex(...\func_get_args());
- }
- public function jsonArrInsert($key, $path, $index, $value, ...$other_values): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonArrInsert(...\func_get_args());
- }
- public function jsonArrLen($key, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonArrLen(...\func_get_args());
- }
- public function jsonArrPop($key, $path = null, $index = -1): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonArrPop(...\func_get_args());
- }
- public function jsonArrTrim($key, $path, $start, $stop): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonArrTrim(...\func_get_args());
- }
- public function jsonClear($key, $path = null): \Relay\Relay|false|int
- {
- return $this->initializeLazyObject()->jsonClear(...\func_get_args());
- }
- public function jsonDebug($command, $key, $path = null): \Relay\Relay|false|int
- {
- return $this->initializeLazyObject()->jsonDebug(...\func_get_args());
- }
- public function jsonDel($key, $path = null): \Relay\Relay|false|int
- {
- return $this->initializeLazyObject()->jsonDel(...\func_get_args());
- }
- public function jsonForget($key, $path = null): \Relay\Relay|false|int
- {
- return $this->initializeLazyObject()->jsonForget(...\func_get_args());
- }
- public function jsonGet($key, $options = [], ...$paths): mixed
- {
- return $this->initializeLazyObject()->jsonGet(...\func_get_args());
- }
- public function jsonMerge($key, $path, $value): \Relay\Relay|bool
- {
- return $this->initializeLazyObject()->jsonMerge(...\func_get_args());
- }
- public function jsonMget($key_or_array, $path): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonMget(...\func_get_args());
- }
- public function jsonMset($key, $path, $value, ...$other_triples): \Relay\Relay|bool
- {
- return $this->initializeLazyObject()->jsonMset(...\func_get_args());
- }
- public function jsonNumIncrBy($key, $path, $value): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonNumIncrBy(...\func_get_args());
- }
- public function jsonNumMultBy($key, $path, $value): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonNumMultBy(...\func_get_args());
- }
- public function jsonObjKeys($key, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonObjKeys(...\func_get_args());
- }
- public function jsonObjLen($key, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonObjLen(...\func_get_args());
- }
- public function jsonResp($key, $path = null): \Relay\Relay|array|false|int|string
- {
- return $this->initializeLazyObject()->jsonResp(...\func_get_args());
- }
- public function jsonSet($key, $path, $value, $condition = null): \Relay\Relay|bool
- {
- return $this->initializeLazyObject()->jsonSet(...\func_get_args());
- }
- public function jsonStrAppend($key, $value, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonStrAppend(...\func_get_args());
- }
- public function jsonStrLen($key, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonStrLen(...\func_get_args());
- }
- public function jsonToggle($key, $path): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonToggle(...\func_get_args());
- }
- public function jsonType($key, $path = null): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->jsonType(...\func_get_args());
- }
- }
- } else {
- /**
- * @internal
- */
- trait RelayProxyTrait
- {
- }
- }
|