PHP Interface Imbo\Image\Identifier\Generator\GeneratorInterface

Author: Espen Hovlandsdal ([email protected])
Datei anzeigen Open project: imbo/imbo

Public Methods

Method Description
generate ( Image $image ) : string Generate an image identifier
isDeterministic ( ) : boolean Return a boolean indicating whether or not the generator is deterministic. Meaning that it will always return the same identifier for the same image.

Method Details

generate() public method

Generate an image identifier
public generate ( Image $image ) : string
$image Imbo\Model\Image The image to generate an image identifier for
return string A valid image identifier, between 1 and 255 characters

isDeterministic() public method

Return a boolean indicating whether or not the generator is deterministic. Meaning that it will always return the same identifier for the same image.
public isDeterministic ( ) : boolean
return boolean