Skip to content

Instantly share code, notes, and snippets.

@Burgov
Last active December 12, 2015 02:19
Show Gist options
  • Save Burgov/4698357 to your computer and use it in GitHub Desktop.
Save Burgov/4698357 to your computer and use it in GitHub Desktop.
<?php
class A implements Serializable {
public function serialize($a) {}
public function unserialize($a) {}
}
$r = new ReflectionClass("A");
foreach($r->getMethods() as $method) {
echo $method->getDeclaringClass()->getName().'::'.$method->getName()."\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment