original_string: public function createFolder(
          array $properties,
          ObjectIdInterface $folderId,
          array $policies = [],
          array $addAces = [],
          array $removeAces = []
      ) {
          if (empty($properties)) {
              throw new CmisInvalidArgumentException('Properties must not be empty!');
          }
  
          $objectId = $this->getBinding()->getObjectService()->createFolder(
              $this->getRepositoryId(),
              $this->getObjectFactory()->convertProperties($properties),
              $folderId->getId(),
              $this->getObjectFactory()->convertPolicies($policies),
              $this->getObjectFactory()->convertAces($addAces),
              $this->getObjectFactory()->convertAces($removeAces),
              null
          );
  
          return $this->createObjectId($objectId);
      }
code: public function createFolder(
          array $properties,
          ObjectIdInterface $folderId,
          array $policies = [],
          array $addAces = [],
          array $removeAces = []
      ) {
          if (empty($properties)) {
              throw new CmisInvalidArgumentException('Properties must not be empty!');
          }
  
          $objectId = $this->getBinding()->getObjectService()->createFolder(
              $this->getRepositoryId(),
              $this->getObjectFactory()->convertProperties($properties),
              $folderId->getId(),
              $this->getObjectFactory()->convertPolicies($policies),
              $this->getObjectFactory()->convertAces($addAces),
              $this->getObjectFactory()->convertAces($removeAces),
              null
          );
  
          return $this->createObjectId($objectId);
      }
code_tokens: public function createFolder ( array $ properties , ObjectIdInterface $ folderId , array $ policies = [ ] , array $ addAces = [ ] , array $ removeAces = [ ] ) { if ( empty ( $ properties ) ) { throw new CmisInvalidArgumentException ( 'Properties must not be empty!' ) ; } $ objectId = $ this -> getBinding ( ) -> getObjectService ( ) -> createFolder ( $ this -> getRepositoryId ( ) , $ this -> getObjectFactory ( ) -> convertProperties ( $ properties ) , $ folderId -> getId ( ) , $ this -> getObjectFactory ( ) -> convertPolicies ( $ policies ) , $ this -> getObjectFactory ( ) -> convertAces ( $ addAces ) , $ this -> getObjectFactory ( ) -> convertAces ( $ removeAces ) , null ) ; return $ this -> createObjectId ( $ objectId ) ; }
docstring: Creates a new folder.
  
  @param string[] $properties
  @param ObjectIdInterface $folderId
  @param PolicyInterface[] $policies
  @param AceInterface[] $addAces
  @param AceInterface[] $removeAces
  @return ObjectIdInterface the object ID of the new folder
  @throws CmisInvalidArgumentException Throws an <code>CmisInvalidArgumentException</code> if empty
  property list is given
docstring_tokens: Creates a new folder .