PHP Интерфейс Imbo\Image\Identifier\Generator\GeneratorInterface

Автор: Espen Hovlandsdal ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

generate() публичный Метод

Generate an image identifier
public generate ( Image $image ) : string
$image Imbo\Model\Image The image to generate an image identifier for
Результат string A valid image identifier, between 1 and 255 characters

isDeterministic() публичный Метод

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
Результат boolean