PhpBench\Benchmark\Metadata\AnnotationReader::__construct PHP Method

__construct() public method

Set import use to true in order to use imported annotations, otherwise import the PHPBench annotations directly.
public __construct ( boolean $importUse = false )
$importUse boolean
    public function __construct($importUse = false)
    {
        $this->docParser = new DocParser();
        $this->docParser->setIgnoredAnnotationNames(self::$globalIgnoredNames);
        $this->importUse = $importUse;
        AnnotationRegistry::registerLoader(function ($classFqn) {
            if (class_exists($classFqn)) {
                return true;
            }
        });
    }