The SignatureParser class currently will call new SignatureArgument and new SignatureOption. This makes extending the library by injecting your own versions of those classes nearly impossible. The only way to inject your own implementation of either class would be to extend the SignatureParser class and overwrite the relevant methods.
Better to provide for injection of a factory to make those classes. This will make extending the library much easier.
The
SignatureParserclass currently will callnew SignatureArgumentandnew SignatureOption. This makes extending the library by injecting your own versions of those classes nearly impossible. The only way to inject your own implementation of either class would be to extend theSignatureParserclass and overwrite the relevant methods.Better to provide for injection of a factory to make those classes. This will make extending the library much easier.