On 1/20/2013 7:35 AM, Sherif Ramadan wrote:
Now $surface shows us the following from var_dump....
object(surface)#1 (3) {
["area"]=>
NULL
["width"]=>
int(4)
["height"]=>
int(2)
}
Sounds like a reasonable approach to me... var_dump()
1) Should not invoke the getters..
2) Should indicate that they are property accessors (perhaps not even
show the underlying guarded property?)
Possibly:
object(surface)#1 (3) {
["area":accessor]=>
NULL
["width":accessor]=>
int(4)
["height":accessor]=>
int(2)
}
This could easily be changed if nobody had any further disagreements
with this?
Only issue I could see would be existing code that may parse var_dump()
might break if it wasn't written to accept something other that
private/protected...
--
-Clint