public function processSource(Queries\Common\ISource $source) { if ($source instanceof Queries\Common\Source\QueryScope) { $processor = $this->forSubScope($source->getScope()); return $source->update($processor->buildScope()); } return $source; }