src/Codec/OrderedTimeCodec.php
public function encodeBinary(UuidInterface $uuid)
    {
        $fields = $uuid->getFieldsHex();

        $optimized = [
            $fields['time_hi_and_version'],
            $fields['time_mid'],
            $fields['time_low'],
            $fields['clock_seq_hi_and_reserved'],
            $fields['clock_seq_low'],
            $fields['node'],
        ];

        return hex2bin(implode('', $optimized));
    }
public function encodeBinary(UuidInterface $uuid)
    {
        $fields = $uuid->getFieldsHex();

        $optimized = [
            $fields['time_hi_and_version'],
            $fields['time_mid'],
            $fields['time_low'],
            $fields['clock_seq_hi_and_reserved'],
            $fields['clock_seq_low'],
            $fields['node'],
        ];

        return hex2bin(implode('', $optimized));
    }
public function encodeBinary ( UuidInterface $ uuid ) { $ fields = $ uuid -> getFieldsHex ( ) ; $ optimized = [ $ fields [ 'time_hi_and_version' ] , $ fields [ 'time_mid' ] , $ fields [ 'time_low' ] , $ fields [ 'clock_seq_hi_and_reserved' ] , $ fields [ 'clock_seq_low' ] , $ fields [ 'node' ] , ] ; return hex2bin ( implode ( '' , $ optimized ) ) ; }
Encodes a UuidInterface as an optimized binary representation of a UUID

@param UuidInterface $uuid
@return string Binary string representation of a UUID
Encodes a UuidInterface as an optimized binary representation of a UUID