@@ -19,107 +19,107 @@ trait FtTrait
19
19
{
20
20
public function ftAggregate ($ index , $ query , $ options = null ): \Relay \Relay |array |false
21
21
{
22
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftAggregate (...\func_get_args ());
22
+ return $ this ->initializeLazyObject ( )->ftAggregate (...\func_get_args ());
23
23
}
24
24
25
25
public function ftAliasAdd ($ index , $ alias ): \Relay \Relay |bool
26
26
{
27
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftAliasAdd (...\func_get_args ());
27
+ return $ this ->initializeLazyObject ( )->ftAliasAdd (...\func_get_args ());
28
28
}
29
29
30
30
public function ftAliasDel ($ alias ): \Relay \Relay |bool
31
31
{
32
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftAliasDel (...\func_get_args ());
32
+ return $ this ->initializeLazyObject ( )->ftAliasDel (...\func_get_args ());
33
33
}
34
34
35
35
public function ftAliasUpdate ($ index , $ alias ): \Relay \Relay |bool
36
36
{
37
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftAliasUpdate (...\func_get_args ());
37
+ return $ this ->initializeLazyObject ( )->ftAliasUpdate (...\func_get_args ());
38
38
}
39
39
40
40
public function ftAlter ($ index , $ schema , $ skipinitialscan = false ): \Relay \Relay |bool
41
41
{
42
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftAlter (...\func_get_args ());
42
+ return $ this ->initializeLazyObject ( )->ftAlter (...\func_get_args ());
43
43
}
44
44
45
45
public function ftConfig ($ operation , $ option , $ value = null ): \Relay \Relay |array |bool
46
46
{
47
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftConfig (...\func_get_args ());
47
+ return $ this ->initializeLazyObject ( )->ftConfig (...\func_get_args ());
48
48
}
49
49
50
50
public function ftCreate ($ index , $ schema , $ options = null ): \Relay \Relay |bool
51
51
{
52
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftCreate (...\func_get_args ());
52
+ return $ this ->initializeLazyObject ( )->ftCreate (...\func_get_args ());
53
53
}
54
54
55
55
public function ftCursor ($ operation , $ index , $ cursor , $ options = null ): \Relay \Relay |array |bool
56
56
{
57
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftCursor (...\func_get_args ());
57
+ return $ this ->initializeLazyObject ( )->ftCursor (...\func_get_args ());
58
58
}
59
59
60
60
public function ftDictAdd ($ dict , $ term , ...$ other_terms ): \Relay \Relay |false |int
61
61
{
62
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftDictAdd (...\func_get_args ());
62
+ return $ this ->initializeLazyObject ( )->ftDictAdd (...\func_get_args ());
63
63
}
64
64
65
65
public function ftDictDel ($ dict , $ term , ...$ other_terms ): \Relay \Relay |false |int
66
66
{
67
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftDictDel (...\func_get_args ());
67
+ return $ this ->initializeLazyObject ( )->ftDictDel (...\func_get_args ());
68
68
}
69
69
70
70
public function ftDictDump ($ dict ): \Relay \Relay |array |false
71
71
{
72
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftDictDump (...\func_get_args ());
72
+ return $ this ->initializeLazyObject ( )->ftDictDump (...\func_get_args ());
73
73
}
74
74
75
75
public function ftDropIndex ($ index , $ dd = false ): \Relay \Relay |bool
76
76
{
77
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftDropIndex (...\func_get_args ());
77
+ return $ this ->initializeLazyObject ( )->ftDropIndex (...\func_get_args ());
78
78
}
79
79
80
80
public function ftExplain ($ index , $ query , $ dialect = 0 ): \Relay \Relay |false |string
81
81
{
82
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftExplain (...\func_get_args ());
82
+ return $ this ->initializeLazyObject ( )->ftExplain (...\func_get_args ());
83
83
}
84
84
85
85
public function ftExplainCli ($ index , $ query , $ dialect = 0 ): \Relay \Relay |array |false
86
86
{
87
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftExplainCli (...\func_get_args ());
87
+ return $ this ->initializeLazyObject ( )->ftExplainCli (...\func_get_args ());
88
88
}
89
89
90
90
public function ftInfo ($ index ): \Relay \Relay |array |false
91
91
{
92
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftInfo (...\func_get_args ());
92
+ return $ this ->initializeLazyObject ( )->ftInfo (...\func_get_args ());
93
93
}
94
94
95
95
public function ftProfile ($ index , $ command , $ query , $ limited = false ): \Relay \Relay |array |false
96
96
{
97
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftProfile (...\func_get_args ());
97
+ return $ this ->initializeLazyObject ( )->ftProfile (...\func_get_args ());
98
98
}
99
99
100
100
public function ftSearch ($ index , $ query , $ options = null ): \Relay \Relay |array |false
101
101
{
102
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftSearch (...\func_get_args ());
102
+ return $ this ->initializeLazyObject ( )->ftSearch (...\func_get_args ());
103
103
}
104
104
105
105
public function ftSpellCheck ($ index , $ query , $ options = null ): \Relay \Relay |array |false
106
106
{
107
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftSpellCheck (...\func_get_args ());
107
+ return $ this ->initializeLazyObject ( )->ftSpellCheck (...\func_get_args ());
108
108
}
109
109
110
110
public function ftSynDump ($ index ): \Relay \Relay |array |false
111
111
{
112
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftSynDump (...\func_get_args ());
112
+ return $ this ->initializeLazyObject ( )->ftSynDump (...\func_get_args ());
113
113
}
114
114
115
115
public function ftSynUpdate ($ index , $ synonym , $ term_or_terms , $ skipinitialscan = false ): \Relay \Relay |bool
116
116
{
117
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftSynUpdate (...\func_get_args ());
117
+ return $ this ->initializeLazyObject ( )->ftSynUpdate (...\func_get_args ());
118
118
}
119
119
120
120
public function ftTagVals ($ index , $ tag ): \Relay \Relay |array |false
121
121
{
122
- return ( $ this ->lazyObjectState -> realInstance ??= ( $ this -> lazyObjectState -> initializer )() )->ftTagVals (...\func_get_args ());
122
+ return $ this ->initializeLazyObject ( )->ftTagVals (...\func_get_args ());
123
123
}
124
124
}
125
125
} else {
0 commit comments