PHP Docblock for child using parent constructor?

323 views Asked by At

What is the proper way to docblock this?

class B extends A
{
    /**
     * Constructor
     *
     * One of these, or???
     * @uses A::__construct()
     * @see  A::__construct()
     *
     * @param int|null $id
     * @param []|null  $data
     */
    function __construct($id = null, $data = null)
    {
        parent::__construct($id);

        if ($data) {
            $this->setAll($data);
        }
    }
}

I couldn't find any documentation saying that parent is a valid keyword. self doesn't really make sense either. Do I put both the @uses and @see tags?

0

There are 0 answers