Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB