Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Check that two MethodGenerator instances hold metadata for methods with the same signature #108

Open
petr-buchin opened this issue May 14, 2017 · 1 comment

Comments

@petr-buchin
Copy link

Suppose I have two MethodGenerator instances - $methodA and $methodB.
Does this library provide a way to check, whether methods, that might be generated by $methodA and $methodB will have the same signature?
By the same signature I mean identical method names, same params with same type hints and same return types.
I thought there might be method like MethodGenerator::hasSameSignature(MethodGenerator $method) but I don't see anything like that in the class API.

I think it would be a very helpful feature, since for decorating class methods it's necessary to check that generated method has the same signature as existing one.

@petr-buchin petr-buchin changed the title Check that two MethodGenerator instances hold metadata for methods with the same signature Check that two MethodGenerator instances hold metadata for methods with the same signature May 14, 2017
@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-code; a new issue has been opened at laminas/laminas-code#14.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants