Given that you can use a known class like dataype in the param and return tags, I would also expect that you can use a known constant. If you want to specify several type parameters, simply split the list into pipes. Change your example:
public function load($method=Foo::METHOD_POST){
Since the data type in this case is a known value inside the class, it can work even without the class prefix:
* @param METHOD_GET|METHOD_POST $method HTTP method to use
ashnazg
source share