Add @throws to phpdoc