PDepend\Source\Language\PHP\PHPBuilder::buildAstSelfReference PHP Method

buildAstSelfReference() public method

Builds a new self reference instance.
Since: 0.9.6
public buildAstSelfReference ( PDepend\Source\AST\AbstractASTClassOrInterface $type ) : PDepend\Source\AST\ASTSelfReference
$type PDepend\Source\AST\AbstractASTClassOrInterface
return PDepend\Source\AST\ASTSelfReference
    public function buildAstSelfReference(AbstractASTClassOrInterface $type)
    {
        Log::debug('Creating: \\PDepend\\Source\\AST\\ASTSelfReference(' . $type->getName() . ')');
        return new \PDepend\Source\AST\ASTSelfReference($this->context, $type);
    }
PHPBuilder