vendredi 9 mars 2018

Is Reflection Class a good pratice?

i have a hope this is a simple question. I have a API will receive some data by JSON. Depending of the attributes of JSON, the API will instanciate a class.

Is it a good pratice use reflection class for things like this?

Because is this case the reflection will solve all my problem. I just know, is it ok do this? Or i should avoid reflection.

Thanks.





Aucun commentaire:

Enregistrer un commentaire