public function &__get($key) { if ($this->parentIsSet($key)) { return $this->parentGet($key); } else { return $this->data[$key]; } }