I got an interesting result by using a magic getter on my class.
Code: Select all
public function __get($Name)
{
$getter='get'.$Name;
if(method_exists($this,$getter))
{
$returnValue = $this->$getter();
}
else
{
throw new InvalidPropertyException("No Readable Property: $Name", get_class($this), $Name);
}
return $returnValue;
}Code: Select all
$tempProperty = $Class->Property;
if (isset($tempProperty))
{
echo "GOT HERE";
}Code: Select all
if (isset($Class->Property))
{
echo "GOT HERE";
}