add @throws to phpdoc