public function matchesEntityType($entityType)
{
$this->evaluateMatcher();
if ($this->entityType === null) {
throw new InvalidQueryRewritingConstraintException('Entity type could not be determined! This might be due to an missing entity type matcher in your privilege target definition!', 1416399447);
}
return $this->entityType === $entityType;
}