vendredi 11 mai 2018

Get all properties except static ones

I tried:

$rc = new \ReflectionClass($this);
$rc->getProperties(ReflectionProperty::IS_PUBLIC || ReflectionProperty::IS_PRIVATE || ReflectionProperty::IS_PROTECTED)

but all that did was give me the one static property that the class has. It has 3 private and one static. I just want to know how to weed out the static ones.





Aucun commentaire:

Enregistrer un commentaire