<?php
interface X {
public function a();
}
class A implements X {
public function a() {}
}
class B extends A { }
$r = new ReflectionClass("B");
foreach($r->getMethods() as $method) { echo $method->getName()."\n"; }
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; A has a deprecated constructor in /in/OQFXo on line 5
a