Re: ReflectionClass::getMethod()

From: Date: Thu, 23 Dec 2004 21:39:19 +0000
Subject: Re: ReflectionClass::getMethod()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-14195@lists.php.net to get a copy of this message
Adding hasMethod() sounds good to me. Sebastian, throwing an exception is relatively slow and cumbersome and sucks if you want to do something like a Delegation model and run through objects and check if a method can be called. Having exceptions thrown each time the object doesn't have the method is crazy. Andi At 11:02 AM 12/23/2004 +0100, Sebastian Bergmann wrote:
Timm Friebe wrote: I think we could all agree on bool hasMethod(string $name) (and not changing getMethod()) though, right? Yes, although I do not think that hasMethod() is really needed. --
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#14195) next »