src/Codec/StringCodec.php
public function decodeBytes($bytes)
    {
        if (strlen($bytes) !== 16) {
            throw new InvalidArgumentException('$bytes string should contain 16 characters.');
        }

        $hexUuid = unpack('H*', $bytes);

        return $this->decode($hexUuid[1]);
    }
public function decodeBytes($bytes)
    {
        if (strlen($bytes) !== 16) {
            throw new InvalidArgumentException('$bytes string should contain 16 characters.');
        }

        $hexUuid = unpack('H*', $bytes);

        return $this->decode($hexUuid[1]);
    }
public function decodeBytes ( $ bytes ) { if ( strlen ( $ bytes ) !== 16 ) { throw new InvalidArgumentException ( '$bytes string should contain 16 characters.' ) ; } $ hexUuid = unpack ( 'H*' , $ bytes ) ; return $ this -> decode ( $ hexUuid [ 1 ] ) ; }
Decodes a binary representation of a UUID into a UuidInterface object instance

@param string $bytes
@return UuidInterface
@throws \InvalidArgumentException if string has not 16 characters
Decodes a binary representation of a UUID into a UuidInterface object instance