PDepend\Source\AST\AbstractASTType::setTokens PHP Method

setTokens() public method

Sets the tokens for this type.
public setTokens ( array $tokens ) : void
$tokens array The generated tokens.
return void
    public function setTokens(array $tokens)
    {
        $this->startLine = reset($tokens)->startLine;
        $this->endLine = end($tokens)->endLine;
        $this->cache->type('tokens')->store($this->id, $tokens);
    }