Features adding suggestion
Hi,
I have some ideas if you approve of i will create a PR for it :
- handle types by adding a
PhpTypeinterface that will be implemented byPhpClassandPhpInterfaceclasses to be able to automatically add use statements -
PhpMethodandPhpParametertype will be list of types merged from typehint and docblock (if we set multiple types we will use only doc block) -
PhpClass getInterfacesreturn collection ofPhpInterfaceobjects - Auto add use statement when adding an interface to
PhpClass
What do you think of this ?
Cheers,
Sorry for not responding earlier, next week will even be better:
handle types by adding a
PhpTypeinterface that will be implemented byPhpClassandPhpInterfaceclasses to be able to automatically add use statements
I see what you are after. I like it, just do not like the name PhpType - something better and we can have it as an interface for interfaces and classes.
PhpMethodandPhpParametertype will be list of types merged from typehint and docblock (if we set multiple types we will use only doc block)
I unfortunately don't get that one - can you explain in more detail please? :)
PhpClass getInterfacesreturn collection ofPhpInterfaceobjects
They actually do. It's a Set from phootwork/collection.
Auto add use statement when adding an interface to
PhpClass
Yup, pass in a PhpInterface and a use statement will be added :)
Thanks for your ideas. Let's clarify them and then see how we can implement them :)