Doctrine\Common\Annotations\DocParser::setIgnoreNotImportedAnnotations PHP Метод

setIgnoreNotImportedAnnotations() публичный Метод

Sets ignore on not-imported annotations.
public setIgnoreNotImportedAnnotations ( boolean $bool ) : void
$bool boolean
Результат void
    public function setIgnoreNotImportedAnnotations($bool)
    {
        $this->ignoreNotImportedAnnotations = (bool) $bool;
    }

Usage Example

Пример #1
0
 /**
  * @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