PHP reflection and class construction helpers.