<?php
/**
 * @author Benjamin Laugueux <benjamin@yzalis.com>
 */
interface GeneratorInterface
{
    /**
     * @param string       $string
     * @param int          $size
     * @param array|string $color
     * @param array|string $backgroundColor
     *
     * @return mixed
     */
    public function getImageBinaryData($string, $size = null, $color = null, $backgroundColor = null);

    /**
     * @param string       $string
     * @param int          $size
     * @param array|string $color
     * @param array|string $backgroundColor
     *
     * @return string
     */
    public function getImageResource($string, $size = null, $color = null, $backgroundColor = null);

    /**
     * Return the mime-type of this identicon.
     *
     * @return string
     */
    public function getMimeType();
}
