protected function getTraverser($dir, $file, $skip, $strict)
    {
        $traverser = new NodeTraverser();

        if ($dir) {
            $traverser->addVisitor(new DirVisitor($skip));
        }

        if ($file) {
            $traverser->addVisitor(new FileVisitor($skip));
        }

        if (!$strict) {
            $traverser->addVisitor(new StrictTypesVisitor());
        }

        return $traverser;
    }
protected function getTraverser($dir, $file, $skip, $strict)
    {
        $traverser = new NodeTraverser();

        if ($dir) {
            $traverser->addVisitor(new DirVisitor($skip));
        }

        if ($file) {
            $traverser->addVisitor(new FileVisitor($skip));
        }

        if (!$strict) {
            $traverser->addVisitor(new StrictTypesVisitor());
        }

        return $traverser;
    }
protected function getTraverser ( $ dir , $ file , $ skip , $ strict ) { $ traverser = new NodeTraverser ( ) ; if ( $ dir ) { $ traverser -> addVisitor ( new DirVisitor ( $ skip ) ) ; } if ( $ file ) { $ traverser -> addVisitor ( new FileVisitor ( $ skip ) ) ; } if ( ! $ strict ) { $ traverser -> addVisitor ( new StrictTypesVisitor ( ) ) ; } return $ traverser ; }
Get the node traverser to use.

@param bool $dir
@param bool $file
@param bool $skip
@param bool $strict

@return \ClassPreloader\Parser\NodeTraverser
Get the node traverser to use .