original_string: public function addToFolder(ObjectIdInterface $folderId, $allVersions = true)
      {
          $objectId = $this->getId();
          $this->getBinding()->getMultiFilingService()->addObjectToFolder(
              $this->getRepositoryId(),
              $objectId,
              $folderId->getId(),
              $allVersions
          );
  
          // remove object form cache
          $this->getSession()->removeObjectFromCache($this->getSession()->createObjectId($objectId));
      }
code: public function addToFolder(ObjectIdInterface $folderId, $allVersions = true)
      {
          $objectId = $this->getId();
          $this->getBinding()->getMultiFilingService()->addObjectToFolder(
              $this->getRepositoryId(),
              $objectId,
              $folderId->getId(),
              $allVersions
          );
  
          // remove object form cache
          $this->getSession()->removeObjectFromCache($this->getSession()->createObjectId($objectId));
      }
code_tokens: public function addToFolder ( ObjectIdInterface $ folderId , $ allVersions = true ) { $ objectId = $ this -> getId ( ) ; $ this -> getBinding ( ) -> getMultiFilingService ( ) -> addObjectToFolder ( $ this -> getRepositoryId ( ) , $ objectId , $ folderId -> getId ( ) , $ allVersions ) ; // remove object form cache $ this -> getSession ( ) -> removeObjectFromCache ( $ this -> getSession ( ) -> createObjectId ( $ objectId ) ) ; }
docstring: Adds this object to a folder.
  
  @param ObjectIdInterface $folderId The folder into which the object is to be filed.
  @param boolean $allVersions Add all versions of the object to the folder if the repository supports
  version-specific filing. Defaults to <code>true</code>.
docstring_tokens: Adds this object to a folder .