Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On function comments add the return as well #10

Open
vendion opened this issue May 29, 2014 · 6 comments
Open

On function comments add the return as well #10

vendion opened this issue May 29, 2014 · 6 comments

Comments

@vendion
Copy link

vendion commented May 29, 2014

When generation comments of a function with pdv could it also show what the return value is like it does with the @param. So the end result would look something like the following

/**
 * someFunc
 *
 * @param int $x
 * @param int $y
 * @return int $sum
 */
@fogine
Copy link

fogine commented Jun 22, 2014

For me that is also a lot desired feature.

@tobyS
Copy link
Owner

tobyS commented Jun 22, 2014

I think it just needs to be added to the corresponding template(s).

@fogine
Copy link

fogine commented Jun 22, 2014

Now script parses only function header ( public function set($arg) ),
not body of function...
In function template, there are available variables:
{{indent}}
{{scope}}
{{static}}
{{name}}

  • parameter variables

On 22. červen 2014 14:44:56, Tobias Schlitt wrote:

I think it just needs to be added to the corresponding template(s).


Reply to this email directly or view it on GitHub
#10 (comment).

@tobyS
Copy link
Owner

tobyS commented Jun 22, 2014

Ah, I see. Well, that is some more effort then. I cannot promise to have time for that in the near future. If anyone has, please feel free to issue a pull request.

@swekaj
Copy link

swekaj commented Feb 24, 2015

If you could also look into adding @throws statements that'd be awesome.

@mhz-tamb
Copy link

mhz-tamb commented Nov 3, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants