properties = $properties; } /** * @param string $name * @return mixed|null */ function __get($name) { return array_key_exists($name, $this->properties) ? $this->properties[$name] : null; } /** * @param string $name * @param mixed $value */ function __set($name, $value) { $this->properties[$name] = $value; } /** * @param string $name * @return bool */ function __isset($name) { return isset($this->properties[$name]); } } endif;