Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- trait Timestampable
- {
- private $created;
- private $updated;
- }
- class Model
- {
- use Timestampable;
- }
- $rc = new ReflectionClass("Model");
- echo "props:";
- foreach ($rc->getProperties() AS $p) {
- echo $p->getName() . "\n";
- }
Add Comment
Please, Sign In to add comment