protected function addDocumentToSet(DMSDocument $document, DMSDocumentSet $set)
    {
        if ($this->isDryrun()) {
            return $this;
        }

        $set->Documents()->add($document);
        return $this;
    }
protected function addDocumentToSet(DMSDocument $document, DMSDocumentSet $set)
    {
        if ($this->isDryrun()) {
            return $this;
        }

        $set->Documents()->add($document);
        return $this;
    }
protected function addDocumentToSet ( DMSDocument $ document , DMSDocumentSet $ set ) { if ( $ this -> isDryrun ( ) ) { return $ this ; } $ set -> Documents ( ) -> add ( $ document ) ; return $ this ; }
Add the given document to the given document set

@param  DMSDocument $document
@param  DMSDocumentSet $set
@return $this
Add the given document to the given document set