Possible Duplicate:
Generate PHP Interfaces
As I want to program against a interface I am looking for a tool that can extract a Interface out of a class.
Suppose I a have a class like this:
<?php
class Foo
{
public function Bar()
{
}
}
?>
then I want the result to be this:
interface IFoo
{
public function Bar();
}
Obvious, for a simple class it is very easy by hand. But I want to extract a interface from the fpdf class, and that is a lot of work.
Any tools for this?
note: In VS2010 this is very easy, just a few clicks.