CloneableInstantiable
ExtendsPhpParser\NodeVisitorAbstract
PHPFUI\RefActor\Actor\Base
ImplementsPhpParser\NodeVisitor
Methods
public __construct(string $classRoot, PHPFUI\RefActor\ClassNameParserBase $classNames)
public afterTraverse(array $nodes)
public PhpParser\NodeVisitorAbstract::beforeTraverse(array $nodes)
public PhpParser\NodeVisitorAbstract::enterNode(PhpParser\Node $node)
public PHPFUI\RefActor\Actor\Base::filterNode(PhpParser\Node $node, array $nodeNames) : bool
public PHPFUI\RefActor\Actor\Base::getCurrentFile() : string
 

Get the current file being processed

public getDescription() : string
public PHPFUI\RefActor\Actor\Base::getPrint() : bool
public getTestCases() : array
public leaveNode(PhpParser\Node $node)
public PHPFUI\RefActor\Actor\Base::setCurrentFile(string $currentFile) : self
 

Sets the $this->currentFile variable once processing has begun. This is called after shouldProcessFile returns true.

public PHPFUI\RefActor\Actor\Base::setPrint(bool $print = true) : self
public PHPFUI\RefActor\Actor\Base::setRefActor(PHPFUI\RefActor $refActor) : self
 

Called by RefActor when adding an Actor. Allows the Actor to reference the RefActor controller.

public shouldProcessFile(string $file) : bool
Properties
protected PHPFUI\RefActor PHPFUI\RefActor\Actor\Base::$refActor
Properties
private array $ast
private string $className
private PHPFUI\RefActor\ClassNameParserBase $classNames
private string $classRoot
private array $functions
private array $functionsCalled
private string $namespace
private PhpParser\Parser $parser
private PhpParser\PrettyPrinter\Standard $prettyPrinter
Methods
private processNodes(array $nodes, array $existingNodes = []) : array
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only