$name = $value; } } catch (\Exception $e) { error_log("Exception in _set method: " . $e->getMessage()); } catch (\Error $e) { error_log("Error in _set method: " . $e->getMessage()); } } /** * @desc will return the value of the requested property * @param string $name * @return mixed */ protected function _get(string $name): mixed { try { $_class_properties = get_class_vars(__CLASS__); if (array_key_exists($name, $_class_properties)) { return $this->$name; } } catch (\Exception $e) { error_log("Exception in _get method: " . $e->getMessage()); } catch (\Error $e) { error_log("Error in _get method: " . $e->getMessage()); } } }