@@ -24,122 +24,122 @@ public function copy($src, $dst, $options = null): \Relay\Relay|bool
24
24
25
25
public function jsonArrAppend ($ key , $ value_or_array , $ path = null ): \Relay \Relay |array |false
26
26
{
27
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonArrAppend (...\func_get_args ());
27
+ return $ this ->initializeLazyObject ( )->jsonArrAppend (...\func_get_args ());
28
28
}
29
29
30
30
public function jsonArrIndex ($ key , $ path , $ value , $ start = 0 , $ stop = -1 ): \Relay \Relay |array |false
31
31
{
32
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonArrIndex (...\func_get_args ());
32
+ return $ this ->initializeLazyObject ( )->jsonArrIndex (...\func_get_args ());
33
33
}
34
34
35
35
public function jsonArrInsert ($ key , $ path , $ index , $ value , ...$ other_values ): \Relay \Relay |array |false
36
36
{
37
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonArrInsert (...\func_get_args ());
37
+ return $ this ->initializeLazyObject ( )->jsonArrInsert (...\func_get_args ());
38
38
}
39
39
40
40
public function jsonArrLen ($ key , $ path = null ): \Relay \Relay |array |false
41
41
{
42
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonArrLen (...\func_get_args ());
42
+ return $ this ->initializeLazyObject ( )->jsonArrLen (...\func_get_args ());
43
43
}
44
44
45
45
public function jsonArrPop ($ key , $ path = null , $ index = -1 ): \Relay \Relay |array |false
46
46
{
47
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonArrPop (...\func_get_args ());
47
+ return $ this ->initializeLazyObject ( )->jsonArrPop (...\func_get_args ());
48
48
}
49
49
50
50
public function jsonArrTrim ($ key , $ path , $ start , $ stop ): \Relay \Relay |array |false
51
51
{
52
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonArrTrim (...\func_get_args ());
52
+ return $ this ->initializeLazyObject ( )->jsonArrTrim (...\func_get_args ());
53
53
}
54
54
55
55
public function jsonClear ($ key , $ path = null ): \Relay \Relay |false |int
56
56
{
57
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonClear (...\func_get_args ());
57
+ return $ this ->initializeLazyObject ( )->jsonClear (...\func_get_args ());
58
58
}
59
59
60
60
public function jsonDebug ($ command , $ key , $ path = null ): \Relay \Relay |false |int
61
61
{
62
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonDebug (...\func_get_args ());
62
+ return $ this ->initializeLazyObject ( )->jsonDebug (...\func_get_args ());
63
63
}
64
64
65
65
public function jsonDel ($ key , $ path = null ): \Relay \Relay |false |int
66
66
{
67
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonDel (...\func_get_args ());
67
+ return $ this ->initializeLazyObject ( )->jsonDel (...\func_get_args ());
68
68
}
69
69
70
70
public function jsonForget ($ key , $ path = null ): \Relay \Relay |false |int
71
71
{
72
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonForget (...\func_get_args ());
72
+ return $ this ->initializeLazyObject ( )->jsonForget (...\func_get_args ());
73
73
}
74
74
75
75
public function jsonGet ($ key , $ options = [], ...$ paths ): mixed
76
76
{
77
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonGet (...\func_get_args ());
77
+ return $ this ->initializeLazyObject ( )->jsonGet (...\func_get_args ());
78
78
}
79
79
80
80
public function jsonMerge ($ key , $ path , $ value ): \Relay \Relay |bool
81
81
{
82
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonMerge (...\func_get_args ());
82
+ return $ this ->initializeLazyObject ( )->jsonMerge (...\func_get_args ());
83
83
}
84
84
85
85
public function jsonMget ($ key_or_array , $ path ): \Relay \Relay |array |false
86
86
{
87
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonMget (...\func_get_args ());
87
+ return $ this ->initializeLazyObject ( )->jsonMget (...\func_get_args ());
88
88
}
89
89
90
90
public function jsonMset ($ key , $ path , $ value , ...$ other_triples ): \Relay \Relay |bool
91
91
{
92
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonMset (...\func_get_args ());
92
+ return $ this ->initializeLazyObject ( )->jsonMset (...\func_get_args ());
93
93
}
94
94
95
95
public function jsonNumIncrBy ($ key , $ path , $ value ): \Relay \Relay |array |false
96
96
{
97
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonNumIncrBy (...\func_get_args ());
97
+ return $ this ->initializeLazyObject ( )->jsonNumIncrBy (...\func_get_args ());
98
98
}
99
99
100
100
public function jsonNumMultBy ($ key , $ path , $ value ): \Relay \Relay |array |false
101
101
{
102
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonNumMultBy (...\func_get_args ());
102
+ return $ this ->initializeLazyObject ( )->jsonNumMultBy (...\func_get_args ());
103
103
}
104
104
105
105
public function jsonObjKeys ($ key , $ path = null ): \Relay \Relay |array |false
106
106
{
107
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonObjKeys (...\func_get_args ());
107
+ return $ this ->initializeLazyObject ( )->jsonObjKeys (...\func_get_args ());
108
108
}
109
109
110
110
public function jsonObjLen ($ key , $ path = null ): \Relay \Relay |array |false
111
111
{
112
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonObjLen (...\func_get_args ());
112
+ return $ this ->initializeLazyObject ( )->jsonObjLen (...\func_get_args ());
113
113
}
114
114
115
115
public function jsonResp ($ key , $ path = null ): \Relay \Relay |array |false |int |string
116
116
{
117
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonResp (...\func_get_args ());
117
+ return $ this ->initializeLazyObject ( )->jsonResp (...\func_get_args ());
118
118
}
119
119
120
120
public function jsonSet ($ key , $ path , $ value , $ condition = null ): \Relay \Relay |bool
121
121
{
122
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonSet (...\func_get_args ());
122
+ return $ this ->initializeLazyObject ( )->jsonSet (...\func_get_args ());
123
123
}
124
124
125
125
public function jsonStrAppend ($ key , $ value , $ path = null ): \Relay \Relay |array |false
126
126
{
127
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonStrAppend (...\func_get_args ());
127
+ return $ this ->initializeLazyObject ( )->jsonStrAppend (...\func_get_args ());
128
128
}
129
129
130
130
public function jsonStrLen ($ key , $ path = null ): \Relay \Relay |array |false
131
131
{
132
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonStrLen (...\func_get_args ());
132
+ return $ this ->initializeLazyObject ( )->jsonStrLen (...\func_get_args ());
133
133
}
134
134
135
135
public function jsonToggle ($ key , $ path ): \Relay \Relay |array |false
136
136
{
137
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonToggle (...\func_get_args ());
137
+ return $ this ->initializeLazyObject ( )->jsonToggle (...\func_get_args ());
138
138
}
139
139
140
140
public function jsonType ($ key , $ path = null ): \Relay \Relay |array |false
141
141
{
142
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->jsonType (...\func_get_args ());
142
+ return $ this ->initializeLazyObject ( )->jsonType (...\func_get_args ());
143
143
}
144
144
}
145
145
} else {
@@ -150,7 +150,7 @@ trait RelayProxyTrait
150
150
{
151
151
public function copy ($ src , $ dst , $ options = null ): \Relay \Relay |false |int
152
152
{
153
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->copy (...\func_get_args ());
153
+ return $ this ->initializeLazyObject ( )->copy (...\func_get_args ());
154
154
}
155
155
}
156
156
}
0 commit comments