PHP Interface Imbo\Image\Identifier\Generator\GeneratorInterface

Author: Espen Hovlandsdal ([email protected])
Afficher le fichier Open project: imbo/imbo

Méthodes publiques

Méthode 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 méthode

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

isDeterministic() public méthode

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
Résultat boolean