original_string: public function setContentStream(StreamInterface $contentStream, $overwrite, $refresh = true)
      {
          $newObjectId = $this->getId();
          $changeToken = $this->getPropertyValue(PropertyIds::CHANGE_TOKEN);
  
          $this->getBinding()->getObjectService()->setContentStream(
              $this->getRepositoryId(),
              $newObjectId,
              $this->getObjectFactory()->convertContentStream($contentStream),
              $overwrite,
              $changeToken
          );
  
          if ($refresh === true) {
              $this->refresh();
          }
  
          if ($newObjectId === null) {
              return null;
          }
  
          return $this->getSession()->createObjectId($newObjectId);
      }
code: public function setContentStream(StreamInterface $contentStream, $overwrite, $refresh = true)
      {
          $newObjectId = $this->getId();
          $changeToken = $this->getPropertyValue(PropertyIds::CHANGE_TOKEN);
  
          $this->getBinding()->getObjectService()->setContentStream(
              $this->getRepositoryId(),
              $newObjectId,
              $this->getObjectFactory()->convertContentStream($contentStream),
              $overwrite,
              $changeToken
          );
  
          if ($refresh === true) {
              $this->refresh();
          }
  
          if ($newObjectId === null) {
              return null;
          }
  
          return $this->getSession()->createObjectId($newObjectId);
      }
code_tokens: public function setContentStream ( StreamInterface $ contentStream , $ overwrite , $ refresh = true ) { $ newObjectId = $ this -> getId ( ) ; $ changeToken = $ this -> getPropertyValue ( PropertyIds :: CHANGE_TOKEN ) ; $ this -> getBinding ( ) -> getObjectService ( ) -> setContentStream ( $ this -> getRepositoryId ( ) , $ newObjectId , $ this -> getObjectFactory ( ) -> convertContentStream ( $ contentStream ) , $ overwrite , $ changeToken ) ; if ( $ refresh === true ) { $ this -> refresh ( ) ; } if ( $ newObjectId === null ) { return null ; } return $ this -> getSession ( ) -> createObjectId ( $ newObjectId ) ; }
docstring: Sets a new content stream for the document. If the repository created a new version,
  the object ID of this new version is returned. Otherwise the object ID of the current document is returned.
  The stream in contentStream is consumed but not closed by this method.
  
  @param StreamInterface $contentStream the content stream
  @param boolean $overwrite if this parameter is set to <code>false</code> and the document already has content,
  the repository throws a CmisContentAlreadyExistsException
  @param boolean $refresh if this parameter is set to <code>true</code>, this object will be refreshed
  after the new content has been set
  @return ObjectIdInterface|null the updated object ID, or <code>null</code> if the repository did not return
  an object ID
docstring_tokens: Sets a new content stream for the document . If the repository created a new version the object ID of this new version is returned . Otherwise the object ID of the current document is returned . The stream in contentStream is consumed but not closed by this method .