public function __get($name) { if (!isset($this->data[$name])) { $this->data[$name] = null; } return $this->data[$name]; }