public function get($key) { if (isset($this->data->{$key})) { return $this->data->{$key}; } return null; }