smartstruct icon indicating copy to clipboard operation
smartstruct copied to clipboard

Feat/optional static mapping

Open petrnymsa opened this issue 2 years ago • 1 comments

This PR adds new parameter to Mapper() annotation to optionally turn off "Static mapping".

In our project, we usually have "statci helper methods" to map the inner fields of complex objects, but such methods are only for mapping. Without this feature, for each static method a new static $_method is generated which often is not needed and moreover, sometimes it leads to compile errors.

Breaking change: NO - as this parameter is by default set to true

petrnymsa avatar Nov 13 '22 14:11 petrnymsa

Hi @smotastic do you think that this feature is helpful? In our project we would like to have it

petrnymsa avatar Feb 27 '23 14:02 petrnymsa