Esempio n. 1
0
 /**
  * Set existingFilesConflictMode
  *
  * @param \TYPO3\CMS\Core\Resource\DuplicationBehavior|string $existingFilesConflictMode Instance or constant of \TYPO3\CMS\Core\Resource\DuplicationBehavior
  * @return void
  * @throws Exception
  */
 public function setExistingFilesConflictMode($existingFilesConflictMode)
 {
     try {
         $this->existingFilesConflictMode = DuplicationBehavior::cast($existingFilesConflictMode);
     } catch (InvalidEnumerationValueException $e) {
         throw new Exception(sprintf('Invalid argument, received: "%s", expected a value from enumeration \\TYPO3\\CMS\\Core\\Resource\\DuplicationBehavior (%s)', $existingFilesConflictMode, implode(', ', DuplicationBehavior::getConstants())));
     }
 }