Hi,
I have some ideas if you approve of i will create a PR for it :
- handle types by adding a
PhpType interface that will be implemented by PhpClass and PhpInterface classes to be able to automatically add use statements
PhpMethod and PhpParameter type will be list of types merged from typehint and docblock (if we set multiple types we will use only doc block)
PhpClass getInterfaces return collection of PhpInterface objects
- Auto add use statement when adding an interface to
PhpClass
What do you think of this ?
Cheers,