Doctrine\Common\Annotations\DocParser::setIgnoredAnnotationNames PHP Method

setIgnoredAnnotationNames() public method

The names are supposed to be the raw names as used in the class, not the fully qualified class names.
public setIgnoredAnnotationNames ( array $names ) : void
$names array indexed by annotation name
return void
    public function setIgnoredAnnotationNames(array $names)
    {
        $this->ignoredAnnotationNames = $names;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getMethodAnnotations(ReflectionMethod $method)
 {
     $class = $method->getDeclaringClass();
     $context = 'method ' . $class->getName() . '::' . $method->getName() . '()';
     $this->parser->setTarget(Target::TARGET_METHOD);
     $this->parser->setImports($this->getMethodImports($method));
     $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
     return $this->parser->parse($method->getDocComment(), $context);
 }
All Usage Examples Of Doctrine\Common\Annotations\DocParser::setIgnoredAnnotationNames