Phpdoc & controllers

#1
[eluser]Unknown[/eluser]
Hello.

I have some controllers with a lot of functions, that make my API. Like getUsers, setPrice etc. All of them use input class and I pass parameters to them using GET or POST method. But how should I comment them using phpdoc? When we consider models, it's clear: we have a function with some params, so I use @param tag. But I can't do that if we consider controller functions as they do not have any params (again: I use input class. Instead of /setPrice/1000/ I use /setPrice/?price=1000).

Thanks in advance


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.