note 95356 rejected from language.oop5.magic by thiago

From: Date: Tue, 29 Dec 2009 00:36:16 +0000
Subject: note 95356 rejected from language.oop5.magic by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164414@lists.php.net to get a copy of this message
Note Submitter: jmcentire at gmail dot com ---- I realize a number of people probably don't see any utility at all in this, but if there is any interest from the community, I would be happy to implement another magic method __gettype(). I'm using objects with magic methods to model self-correcting and validating data. But, I want it to be as transparent to PHP as possible. As such, I'd like gettype($myObject) to return according to a __gettype() magic method rather than give back: "object." Would this solution benefit anyone else?

« previous php.notes (#164414) next »