public function __get($name) { if (!property_exists($this, $name)) { throw new OutOfBoundsException('Cannot retrieve arbitrary properties from server'); } return $this->{$name}; }