Use method phpdoc annotations for when actions