Posted by Ralph Schindler (ralph) on 2009-08-19T07:47:18.000+0000
What exactly is getReturn(), what purpose does it serve?
Posted by Carlton Gibson (carlton) on 2009-08-19T08:26:38.000+0000
It gets the return type of the method. It's implemented by Zend_Reflection_Function (which Zend_Reflection_Method is meant to follow, bar getDefiningClass() ). One of the examples also uses it. (Trouble is you run the example and, obviously you get a fatal error.)
If it were not for following Zend_Reflection_Function, getReturnType() might be better but I think in context it is clear enough.
Posted by Christopher Thomas (cwt137) on 2010-01-21T06:44:04.000+0000
Hello. Attached is a patch with the method implemented. It also includes a unit test.
Comments
Posted by Ralph Schindler (ralph) on 2009-08-19T07:47:18.000+0000
What exactly is getReturn(), what purpose does it serve?
Posted by Carlton Gibson (carlton) on 2009-08-19T08:26:38.000+0000
It gets the return type of the method. It's implemented by Zend_Reflection_Function (which Zend_Reflection_Method is meant to follow, bar getDefiningClass() ). One of the examples also uses it. (Trouble is you run the example and, obviously you get a fatal error.)
If it were not for following Zend_Reflection_Function, getReturnType() might be better but I think in context it is clear enough.
Posted by Christopher Thomas (cwt137) on 2010-01-21T06:44:04.000+0000
Hello. Attached is a patch with the method implemented. It also includes a unit test.