Added more specific return type as an alternative to phpdoc.