PDepend\Source\Language\PHP\AbstractPHPParser::parseFormalParameterOrByReference PHP Method

parseFormalParameterOrByReference() protected method

--- ------- function foo(array &$x, $y = 42) } --- -------
Since: 0.9.6
protected parseFormalParameterOrByReference ( ) : PDepend\Source\AST\ASTFormalParameter
return PDepend\Source\AST\ASTFormalParameter
    protected function parseFormalParameterOrByReference()
    {
        $this->consumeComments();
        if ($this->tokenizer->peek() === Tokens::T_BITWISE_AND) {
            return $this->parseFormalParameterAndByReference();
        }
        return $this->parseFormalParameter();
    }
AbstractPHPParser