Add phpdoc annotations for when action methods to help IDEs