diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/symfony/cache/Traits/RelayProxyTrait.php | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/symfony/cache/Traits/RelayProxyTrait.php')
-rw-r--r-- | vendor/symfony/cache/Traits/RelayProxyTrait.php | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/vendor/symfony/cache/Traits/RelayProxyTrait.php b/vendor/symfony/cache/Traits/RelayProxyTrait.php new file mode 100644 index 0000000..a1d252b --- /dev/null +++ b/vendor/symfony/cache/Traits/RelayProxyTrait.php | |||
@@ -0,0 +1,156 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Cache\Traits; | ||
13 | |||
14 | if (version_compare(phpversion('relay'), '0.8.1', '>=')) { | ||
15 | /** | ||
16 | * @internal | ||
17 | */ | ||
18 | trait RelayProxyTrait | ||
19 | { | ||
20 | public function copy($src, $dst, $options = null): \Relay\Relay|bool | ||
21 | { | ||
22 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->copy(...\func_get_args()); | ||
23 | } | ||
24 | |||
25 | public function jsonArrAppend($key, $value_or_array, $path = null): \Relay\Relay|array|false | ||
26 | { | ||
27 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonArrAppend(...\func_get_args()); | ||
28 | } | ||
29 | |||
30 | public function jsonArrIndex($key, $path, $value, $start = 0, $stop = -1): \Relay\Relay|array|false | ||
31 | { | ||
32 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonArrIndex(...\func_get_args()); | ||
33 | } | ||
34 | |||
35 | public function jsonArrInsert($key, $path, $index, $value, ...$other_values): \Relay\Relay|array|false | ||
36 | { | ||
37 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonArrInsert(...\func_get_args()); | ||
38 | } | ||
39 | |||
40 | public function jsonArrLen($key, $path = null): \Relay\Relay|array|false | ||
41 | { | ||
42 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonArrLen(...\func_get_args()); | ||
43 | } | ||
44 | |||
45 | public function jsonArrPop($key, $path = null, $index = -1): \Relay\Relay|array|false | ||
46 | { | ||
47 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonArrPop(...\func_get_args()); | ||
48 | } | ||
49 | |||
50 | public function jsonArrTrim($key, $path, $start, $stop): \Relay\Relay|array|false | ||
51 | { | ||
52 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonArrTrim(...\func_get_args()); | ||
53 | } | ||
54 | |||
55 | public function jsonClear($key, $path = null): \Relay\Relay|false|int | ||
56 | { | ||
57 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonClear(...\func_get_args()); | ||
58 | } | ||
59 | |||
60 | public function jsonDebug($command, $key, $path = null): \Relay\Relay|false|int | ||
61 | { | ||
62 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonDebug(...\func_get_args()); | ||
63 | } | ||
64 | |||
65 | public function jsonDel($key, $path = null): \Relay\Relay|false|int | ||
66 | { | ||
67 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonDel(...\func_get_args()); | ||
68 | } | ||
69 | |||
70 | public function jsonForget($key, $path = null): \Relay\Relay|false|int | ||
71 | { | ||
72 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonForget(...\func_get_args()); | ||
73 | } | ||
74 | |||
75 | public function jsonGet($key, $options = [], ...$paths): mixed | ||
76 | { | ||
77 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonGet(...\func_get_args()); | ||
78 | } | ||
79 | |||
80 | public function jsonMerge($key, $path, $value): \Relay\Relay|bool | ||
81 | { | ||
82 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonMerge(...\func_get_args()); | ||
83 | } | ||
84 | |||
85 | public function jsonMget($key_or_array, $path): \Relay\Relay|array|false | ||
86 | { | ||
87 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonMget(...\func_get_args()); | ||
88 | } | ||
89 | |||
90 | public function jsonMset($key, $path, $value, ...$other_triples): \Relay\Relay|bool | ||
91 | { | ||
92 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonMset(...\func_get_args()); | ||
93 | } | ||
94 | |||
95 | public function jsonNumIncrBy($key, $path, $value): \Relay\Relay|array|false | ||
96 | { | ||
97 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonNumIncrBy(...\func_get_args()); | ||
98 | } | ||
99 | |||
100 | public function jsonNumMultBy($key, $path, $value): \Relay\Relay|array|false | ||
101 | { | ||
102 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonNumMultBy(...\func_get_args()); | ||
103 | } | ||
104 | |||
105 | public function jsonObjKeys($key, $path = null): \Relay\Relay|array|false | ||
106 | { | ||
107 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonObjKeys(...\func_get_args()); | ||
108 | } | ||
109 | |||
110 | public function jsonObjLen($key, $path = null): \Relay\Relay|array|false | ||
111 | { | ||
112 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonObjLen(...\func_get_args()); | ||
113 | } | ||
114 | |||
115 | public function jsonResp($key, $path = null): \Relay\Relay|array|false|int|string | ||
116 | { | ||
117 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonResp(...\func_get_args()); | ||
118 | } | ||
119 | |||
120 | public function jsonSet($key, $path, $value, $condition = null): \Relay\Relay|bool | ||
121 | { | ||
122 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonSet(...\func_get_args()); | ||
123 | } | ||
124 | |||
125 | public function jsonStrAppend($key, $value, $path = null): \Relay\Relay|array|false | ||
126 | { | ||
127 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonStrAppend(...\func_get_args()); | ||
128 | } | ||
129 | |||
130 | public function jsonStrLen($key, $path = null): \Relay\Relay|array|false | ||
131 | { | ||
132 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonStrLen(...\func_get_args()); | ||
133 | } | ||
134 | |||
135 | public function jsonToggle($key, $path): \Relay\Relay|array|false | ||
136 | { | ||
137 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonToggle(...\func_get_args()); | ||
138 | } | ||
139 | |||
140 | public function jsonType($key, $path = null): \Relay\Relay|array|false | ||
141 | { | ||
142 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->jsonType(...\func_get_args()); | ||
143 | } | ||
144 | } | ||
145 | } else { | ||
146 | /** | ||
147 | * @internal | ||
148 | */ | ||
149 | trait RelayProxyTrait | ||
150 | { | ||
151 | public function copy($src, $dst, $options = null): \Relay\Relay|false|int | ||
152 | { | ||
153 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->copy(...\func_get_args()); | ||
154 | } | ||
155 | } | ||
156 | } | ||