Zum Inhalt springen

Schlagwort: Reflection

Die Reflection API von PHP

Viele Frameworks arbeiten auch unter PHP mit Annotations oder Enums. Da fragt man sich oft, wie das denn möglich ist, da PHP diese Sprachkonstrukte gar nicht unterstützt. Hierfür gibt es eine API und eine entsprechende Implementierung, die die ganze Magie ausmacht. Es handelt sich dabei um Reflection. In anderen Sprachen ist der Begriff Introspection ganz beliebt und zu Deutsch heißt das ganze dann Reflexion. Ich bevorzuge Reflection, da man so einen direkten Bezug zur Implementierung herstellen kann.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close