Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Auto generate getters and setters #161

sovetski started this conversation in Ideas
Discussion options

Hi,

I know that using getters and setters depends on the preferences of developers, but it is the default approach in frameworks like Symfony.

I didn't find anything related to this in the library. Do we have the option to "generate getters and setters from properties"?

If not, is it possible to add this feature? If the maintainers are okay with it, I can look into creating a PR.

Thanks.

You must be logged in to vote

Replies: 1 comment

Comment options

You can send a PR. Ideally try to add functionality to the https://github.com/nette/php-generator/blob/master/src/PhpGenerator/ClassManipulator.php

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /