/**
  *
  * @param \Sds\DoctrineExtensions\Annotation\AnnotationEventArgs $eventArgs
  */
 public function annotationValidator(AnnotationEventArgs $eventArgs)
 {
     $annotation = $eventArgs->getAnnotation();
     switch ($eventArgs->getEventType()) {
         case EventType::document:
             $this->addDocumentValidator($eventArgs, ['class' => $annotation->class, 'options' => $annotation->options]);
             break;
             break;
         case EventType::field:
             $this->addFieldValidator($eventArgs, ['class' => $annotation->class, 'options' => $annotation->options]);
             break;
     }
 }