Skip to content

Instantly share code, notes, and snippets.

@asgrim
Created July 15, 2015 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asgrim/53877735f1c280244e26 to your computer and use it in GitHub Desktop.
Save asgrim/53877735f1c280244e26 to your computer and use it in GitHub Desktop.
foreach ([
'TraitFixtureA',
// 'TraitFixtureB',
// 'TraitFixtureC',
// 'TraitFixtureD',
] as $c) {
echo "\n\n" . $c . "\n" . str_repeat('=', strlen($c)) . "\n\n";
$a = new \ReflectionClass($c);
var_dump($a->getTraits());
var_dump($a->getTraitNames());
var_dump($a->getTraitAliases());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment