| 1 | <?php |
||
| 10 | class QueryHandler |
||
| 11 | { |
||
| 12 | /** @var callback[] Collection of external query handlers(callbacks) */ |
||
| 13 | private $handlers = array(); |
||
| 14 | |||
| 15 | /** @var array Collection of external query handlers(callbacks) additional parameters */ |
||
| 16 | private $params = array(); |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Add extenal query handler |
||
| 20 | * @param callable $callable External handler |
||
| 21 | * @return self Chaining |
||
| 22 | * @deprecated Not used |
||
| 23 | */ |
||
| 24 | public function handler($callable) |
||
| 45 | |||
| 46 | /** Execute all available external query handlers */ |
||
| 47 | protected function callHandlers() |
||
| 61 | } |
||
| 62 |