PHPDoc inline {@link} (and Netbeans)

Maybe I don’t understand completely, but I'm trying to link the PHPDoc {@link}inline tag with a link to another method in the class (the docblock in question refers to the "verbatim alias" method)

I didn't generate anything for documentation at all, but it {@link}appears as plain text in the NetBeans method handle. Am I doing something wrong syntactically (if I compile the documentation, will this work?) Or is it just that NetBeans cannot support the built-in {@link}?

For instance:

class MyClass
{

    /**
     * Shorthand alias for {@link MyClass::method()}
     *
     * @param mixed $foo
     * @param mixed $bar
     * @return mixed
     */
    public function __invoke($foo, $bar)
    {
        return $this->method($foo, $bar);
    }

    /**
     * Does stuff with $foo and $bar
     *
     * @param mixed $foo
     * @param mixed $bar
     * @return mixed
     */
    public function method($foo, $bar)
    {
        // ...
    }

}
+5
source share
1 answer

, , PHPDoc , .

Netbeans PHPDoc, @see.

+4

All Articles