implementsInterface('A')); $inter = new ReflectionClass('B'); var_dump($inter->hasMethod('foo'));