src/Common/Util/MapUtil.php
public static function objectToString($object): string {
        //TODO do type hinting when possible
        if (!\is_object($object)) {
            throw new InvalidKeyTypeException("key has to be an object, " . \gettype($object) . "given");
        }
        return \serialize($object);
    }
public static function objectToString($object): string {
        //TODO do type hinting when possible
        if (!\is_object($object)) {
            throw new InvalidKeyTypeException("key has to be an object, " . \gettype($object) . "given");
        }
        return \serialize($object);
    }
public static function objectToString ( $ object ) : string { //TODO do type hinting when possible if ( ! \ is_object ( $ object ) ) { throw new InvalidKeyTypeException ( "key has to be an object, " . \ gettype ( $ object ) . "given" ) ; } return \ serialize ( $ object ) ; }
This methods converts an object to a string using serialization

@param $object
@return string
@throws InvalidKeyTypeException
This methods converts an object to a string using serialization