override return type in PHPDoc

Viewed 5119

I have a class Abc with method (body is not important):

/**
 * @return SomeBaseClass
 */
function getAll() { ... }

In child class of Abc called AbcChild I'd like to redefine only type of returning class to see it properly in Netbeans. Can I do it without redefining method:

/**
 * @return SomeClass
 */
function getAll() { return parent::getAll(); }
3 Answers
Related