/**
 * Sets the document generator
 *
 * @param   string  $generator  The generator to be set
 *
 * @return  Document instance of $this to allow chaining
 *
 * @since   1.7.0
 */
public function setGenerator($generator)
{
    $this->_generator = $generator;
    return $this;
}