public function getSignature() {
if ($this->signature !== NULL) {
return $this->signature;
}
if ($this
->getName() == 'anonymous function') {
$this->signature = 'anonymous function';
$i = $this->id + 1;
}
else {
$this->signature = '';
$i = $this->id + 2;
}
$tokens = $this->tokenStream
->tokens();
while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) {
$this->signature .= $tokens[$i++];
}
$this->signature .= ')';
return $this->signature;
}