jeudi 5 juillet 2018

Can dynamically add trait in object?

I wont to dynamically add trait in object. Can I do it?

For example i have $object;

$object->setTrait($someTrait);

Thanks for help.





Aucun commentaire:

Enregistrer un commentaire