silverstripe-framework/Assets/Storage/AssetNameGenerator.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

27 lines
558 B
PHP

<?php
namespace SilverStripe\Assets\Storage;
/**
* Provides a mechanism for suggesting filename alterations to a file
*
* Does not actually check for existence of the file, but rather comes up with as many suggestions for
* the given file as possible to a finite limit.
*/
interface AssetNameGenerator extends \Iterator {
/**
* Construct a generator for the given filename
*
* @param string $filename
*/
public function __construct($filename);
/**
* Number of attempts allowed
*
* @return int
*/
public function getMaxTries();
}