public function __get($name) { return array_key_exists($name, $this->attributes) ? $this->attributes[$name] : null; }