public function walk(SpecificationInterface $specification, $query)
    {
        foreach ($this->visitors as $visitor) {
            if ($visitor->supports($specification)) {
                $visitor->visit($specification, $this, $query);
            }
        }
    }
public function walk(SpecificationInterface $specification, $query)
    {
        foreach ($this->visitors as $visitor) {
            if ($visitor->supports($specification)) {
                $visitor->visit($specification, $this, $query);
            }
        }
    }
public function walk ( SpecificationInterface $ specification , $ query ) { foreach ( $ this -> visitors as $ visitor ) { if ( $ visitor -> supports ( $ specification ) ) { $ visitor -> visit ( $ specification , $ this , $ query ) ; } } }
Apply known specification visitors to the supplied specification to build the query

@param SpecificationInterface $specification
@param $query
Apply known specification visitors to the supplied specification to build the query