public function __get($sIncName = null) { try { $oProperty = new \ReflectionProperty($this, $sIncName); if ($oProperty->isPublic()) { return $oProperty->getValue($this); } } catch (\ReflectionException $e) { // } return parent::__get($sIncName); }
public function __get($sIncName = null) { try { $oProperty = new \ReflectionProperty($this, $sIncName); if ($oProperty->isPublic()) { return $oProperty->getValue($this); } } catch (\ReflectionException $e) { // } return parent::__get($sIncName); }