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

Comment out method #59

Closed
NicholasJohn16 opened this issue Jan 28, 2019 · 1 comment
Closed

Comment out method #59

NicholasJohn16 opened this issue Jan 28, 2019 · 1 comment

Comments

@NicholasJohn16
Copy link

Is there anyway to set a method so that it's commented out at creation? So like:

class myClass extends otherClass
{
    //private function _actionGet(CommandContext $context)
    //{
    //
    //}
}

I want to generate some code with default functions that I might not end up using and can just uncomment them if I need to.

@gossi
Copy link
Collaborator

gossi commented Jan 28, 2019

It's not possible to do that. Also I don't see a point in there, generating code is binary, do it or don't do it and not fuzzy like this. I guess you are using it the wrong way then.

What you could do is generate a trait and advise your users to use that one or not.

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

2 participants