I've decided to have some fun, and implement .Net Properties in PHP.
My current design centers around something like:
$var;
method Var($value = null)
{
if($value == null) {
return $var;
}
else {
$var = $value;
}
}
Obviously this runs into a bit of an issue if someone is trying to set the property (and associated variable) to null, so I am thinking of creating a throwaway class that would never be used. Thoughts, comments?