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

parseReturnTypeHint() protected method

protected parseReturnTypeHint ( ) : PDepend\Source\AST\ASTType
return PDepend\Source\AST\ASTType
    protected function parseReturnTypeHint()
    {
        $this->consumeComments();
        switch ($tokenType = $this->tokenizer->peek()) {
            case Tokens::T_ARRAY:
                $type = $this->parseArrayType();
                break;
            case Tokens::T_SELF:
                $type = $this->parseSelfType();
                break;
            case Tokens::T_PARENT:
                $type = $this->parseParentType();
                break;
            default:
                $type = $this->parseTypeHint();
                break;
        }
        return $type;
    }