src/Suite.php
public static function hash($reference)
    {
        if (is_object($reference)) {
            return spl_object_hash($reference);
        }
        if (is_string($reference)) {
            return $reference;
        }
        throw new InvalidArgumentException("Error, the passed argument is not hashable.");
    }
public static function hash($reference)
    {
        if (is_object($reference)) {
            return spl_object_hash($reference);
        }
        if (is_string($reference)) {
            return $reference;
        }
        throw new InvalidArgumentException("Error, the passed argument is not hashable.");
    }
public static function hash ( $ reference ) { if ( is_object ( $ reference ) ) { return spl_object_hash ( $ reference ) ; } if ( is_string ( $ reference ) ) { return $ reference ; } throw new InvalidArgumentException ( "Error, the passed argument is not hashable." ) ; }
Generates a hash from an instance or a string.

@param  mixed $reference An instance or a fully namespaced class name.

@return string           A string hash.
@throws InvalidArgumentException
Generates a hash from an instance or a string .