Mmanos\Search\Query::executeCallbacks PHP Method

executeCallbacks() protected method

Execute any callback functions. Only execute once.
protected executeCallbacks ( ) : void
return void
    protected function executeCallbacks()
    {
        if ($this->callbacks_executed) {
            return;
        }
        $this->callbacks_executed = true;
        foreach ($this->callbacks as $callback) {
            if ($q = call_user_func($callback, $this->query)) {
                $this->query = $q;
            }
        }
    }