Getters/Setters and parent getter/setter access

From: Date: Sat, 19 Nov 2011 07:15:04 +0000
Subject: Getters/Setters and parent getter/setter access
Groups: php.internals 
Request: Send a blank email to internals+get-56422@lists.php.net to get a copy of this message
The RFC here: https://wiki.php.net/rfc/propertygetsetsyntax Talks about allowing a sub-class to access a parent getter via TimePeriod::$Milliseconds or possibly parent::$Milliseconds. Either of those methods (currently) tries to access a static property in the parent or defined class. It would probably break existing code if we tried to make the parent:: or TimePeriod:: syntax to access the parent accessor. Anyone have any suggestions on an alternative syntax? I'm sure I could change it so that parent:: or TimePeriod:: from within a getter/setter would cause it to access the parent getter/setter but that would create an inconsistency within the language. Ideas? -Clint

« previous php.internals (#56422) next »