1 | <?php declare(strict_types=1); |
||
14 | trait AsyncTable |
||
15 | { |
||
16 | /** |
||
17 | * @var Pool |
||
18 | */ |
||
19 | private $pool; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $tableName; |
||
25 | |||
26 | /** |
||
27 | * @var AnnotationReader |
||
28 | */ |
||
29 | private $annotationReader; |
||
30 | |||
31 | /** |
||
32 | * @var \ReflectionClass |
||
33 | */ |
||
34 | private $reflectionClass; |
||
35 | |||
36 | /** |
||
37 | * @param Pool $pool |
||
38 | * @param string $tableName |
||
39 | * @param mixed $tableClass |
||
40 | */ |
||
41 | public function setUpAsyncTable(Pool $pool, $tableName, $tableClass) |
||
48 | |||
49 | /** |
||
50 | * @param $function |
||
51 | * @param array $arguments |
||
52 | * @return PromiseInterface |
||
53 | */ |
||
54 | protected function callAsyncOrSync($function, $arguments) |
||
77 | |||
78 | /** |
||
79 | * @param $function |
||
80 | * @param array $arguments |
||
81 | * @return PromiseInterface |
||
82 | */ |
||
83 | private function callSync($function, array $arguments = []) |
||
100 | |||
101 | /** |
||
102 | * @param $function |
||
103 | * @param array $arguments |
||
104 | * @return PromiseInterface |
||
105 | */ |
||
106 | private function callAsync($function, array $arguments = []) |
||
122 | |||
123 | /** |
||
124 | * @param $class |
||
125 | * @return bool |
||
126 | */ |
||
127 | private function hasClassAnnotation($class) |
||
131 | |||
132 | /** |
||
133 | * @param $method |
||
134 | * @param $class |
||
135 | * @return bool |
||
136 | */ |
||
137 | private function hasMethodAnnotation($method, $class) |
||
143 | |||
144 | /** |
||
145 | * @param $method |
||
146 | * @return bool |
||
147 | */ |
||
148 | private function hasNoMethodAnnotation($method) |
||
157 | |||
158 | /** |
||
159 | * @param $function |
||
160 | * @return bool |
||
161 | */ |
||
162 | private function returnsQuery($function) |
||
178 | |||
179 | /** |
||
180 | * @param $docBlockContents |
||
181 | * @return DocBlock |
||
182 | */ |
||
183 | private function getDocBlock($docBlockContents) |
||
191 | } |
||
192 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.