PDepend\Source\Language\PHP\PHPParserVersion70::parseCallableDeclarationAddition PHP Method

parseCallableDeclarationAddition() protected method

protected parseCallableDeclarationAddition ( PDepend\Source\AST\AbstractASTCallable $callable ) : PDepend\Source\AST\AbstractASTCallable
$callable PDepend\Source\AST\AbstractASTCallable
return PDepend\Source\AST\AbstractASTCallable
    protected function parseCallableDeclarationAddition($callable)
    {
        $this->consumeComments();
        if (Tokens::T_COLON != $this->tokenizer->peek()) {
            return $callable;
        }
        $this->consumeToken(Tokens::T_COLON);
        $type = $this->parseReturnTypeHint();
        $callable->addChild($type);
        return $callable;
    }