public function accepts($expected, $actual)
{
if (is_string($expected) && is_string($actual) && QueryComparator::isParameter($expected) || $expected instanceof IParameterRegistry && $actual instanceof IParameterRegistry) {
return true;
} elseif (is_array($expected) && is_array($actual) && !empty($expected)) {
foreach ($expected as $key => $value) {
if (!self::isParameter($key)) {
return false;
}
}
return true;
}
return false;
}