public function runDirectives(QueryInterface $query, array $skipDirective = [])
    {
        foreach ($this->directives as $key => $value) {
            if (in_array($key, $skipDirective, true)) {
                continue;
            }
            if (!$this->hasDirectiveHandler($key)) {
                continue;
            }
            if (is_callable($this->getDirectiveHandler($key))) {
                call_user_func($this->getDirectiveHandler($key), $query, $value, $this->directives);
            }
        }
    }
public function runDirectives(QueryInterface $query, array $skipDirective = [])
    {
        foreach ($this->directives as $key => $value) {
            if (in_array($key, $skipDirective, true)) {
                continue;
            }
            if (!$this->hasDirectiveHandler($key)) {
                continue;
            }
            if (is_callable($this->getDirectiveHandler($key))) {
                call_user_func($this->getDirectiveHandler($key), $query, $value, $this->directives);
            }
        }
    }
public function runDirectives ( QueryInterface $ query , array $ skipDirective = [ ] ) { foreach ( $ this -> directives as $ key => $ value ) { if ( in_array ( $ key , $ skipDirective , true ) ) { continue ; } if ( ! $ this -> hasDirectiveHandler ( $ key ) ) { continue ; } if ( is_callable ( $ this -> getDirectiveHandler ( $ key ) ) ) { call_user_func ( $ this -> getDirectiveHandler ( $ key ) , $ query , $ value , $ this -> directives ) ; } } }
This runs the callbacks attached to each directive command.

@param QueryInterface $query
@param array          $skipDirective
This runs the callbacks attached to each directive command .