public function __set($name, $value) { switch ($name) { case 'formatOutput': $this->_document->{$name} = $value; return; } $this->{$name} = $value; }