Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
3 / 3
AbstractTraverser
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 buildTraverser(Visitor\FqcnHelper $collector)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
<?php
/*
 * Mondrian
 */
namespace Trismegiste\Mondrian\Builder\Compiler;
use Trismegiste\Mondrian\Visitor;
/**
 * AbstractTraverser partly builds the compiler with a traverser
 */
abstract class AbstractTraverser implements BuilderInterface
{
    public function buildTraverser(Visitor\FqcnHelper $collector)
    {
        $traverser = new \PHPParser_NodeTraverser();
        $traverser->addVisitor($collector);
        return $traverser;
    }
}