For a standard method, I know one can specify return type in the comments such as:
/**
* Load this entity from the database with the specified primary key.
* @param int $Key
* @return BaseEntity
*/
public static function Load($Key)
{ ... }
I would like to have the return type change depending on the subclass. Something like:
* @return __CLASS__
In other languages, this could be accomplished using templates etc. Do I have any options for PHP?