Req #53779 [Opn->Dup]: New class ReflectionConstant along the lines of ReflectionProperty

From: Date: Mon, 31 Aug 2015 20:48:52 +0000
Subject: Req #53779 [Opn->Dup]: New class ReflectionConstant along the lines of ReflectionProperty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195660@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53779&edit=1

 ID:                 53779
 Updated by:         cmb@php.net
 Reported by:        RQuadling at GMail dot com
 Summary:            New class ReflectionConstant along the lines of
                     ReflectionProperty
-Status:             Open
+Status:             Duplicate
 Type:               Feature/Change Request
 Package:            Reflection related
 Operating System:   Irrelevant
 PHP Version:        5.3SVN-2011-01-18 (SVN)
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This is actually a duplicate of request #45569, after
ReflectionParameter::getType() has already been implemented.


Previous Comments:
------------------------------------------------------------------------
[2011-01-29 02:47:09] felipe@php.net

More related ideas in bug #45569

------------------------------------------------------------------------
[2011-01-18 16:55:51] RQuadling at GMail dot com

Description:
------------
Using ReflectionClass->getConstants() returns all constants defined in the class 
tree as a simple array, irrespective of the defining class.

In comparison to that ReflectionClass->getProperties() returns a collection of 
ReflectionProperty, allowing you to filter the find the properties for a single 
class.

So, would it be possible to have a similar mechanism for constants, replacing the 
simplistic array with a collection of RefelctionConstant.





------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=53779&edit=1


Thread (3 messages)

« previous php.bugs (#195660) next »