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

setIgnoreNotImportedAnnotations() public method

Sets ignore on not-imported annotations.
public setIgnoreNotImportedAnnotations ( boolean $bool ) : void
$bool boolean
return void
    public function setIgnoreNotImportedAnnotations($bool)
    {
        $this->ignoreNotImportedAnnotations = (bool) $bool;
    }

Usage Example

 /**
  * @param DocParser $docParser
  *
  * @throws InvalidArgumentException
  * @throws RuntimeException
  */
 public function __construct(DocParser $docParser)
 {
     $this->docParser = $docParser;
     $this->docParser->setIgnoreNotImportedAnnotations(true);
     $this->docParser->addNamespace('');
     $this->registerNamespace('CodeDocs');
 }
All Usage Examples Of Doctrine\Common\Annotations\DocParser::setIgnoreNotImportedAnnotations