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

Request: insert constructor #2

Open
JeffBeltran opened this issue Jan 11, 2018 · 2 comments
Open

Request: insert constructor #2

JeffBeltran opened this issue Jan 11, 2018 · 2 comments

Comments

@JeffBeltran
Copy link

JeffBeltran commented Jan 11, 2018

Could you add a "insert constructor" option or something like that?

selecting property name would then generate the following code

protected $property;

public function __construct($property)
{
	$this->property = $property;
}

Thanks

@phproberto
Copy link
Owner

I like the idea. I use an extension in sublime text that has a command to do this:

SublimePHPCompanion - insert_php_constructor_property

I'll definitely add it as a feature replicating the sublime text plugin behavior.

Thanks for your suggestion!

@JeffBeltran
Copy link
Author

perfect, yeah it's one of those things i miss from sublime, for now i have a snippet setup but would be nice to have a way to add a property to the constructor but that's just cause im lazy 😃

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

No branches or pull requests

2 participants