src/Codec/TimestampFirstCombCodec.php
public function encode(UuidInterface $uuid)
    {
        $sixPieceComponents = array_values($uuid->getFieldsHex());

        $this->swapTimestampAndRandomBits($sixPieceComponents);

        return vsprintf(
            '%08s-%04s-%04s-%02s%02s-%012s',
            $sixPieceComponents
        );
    }
public function encode(UuidInterface $uuid)
    {
        $sixPieceComponents = array_values($uuid->getFieldsHex());

        $this->swapTimestampAndRandomBits($sixPieceComponents);

        return vsprintf(
            '%08s-%04s-%04s-%02s%02s-%012s',
            $sixPieceComponents
        );
    }
public function encode ( UuidInterface $ uuid ) { $ sixPieceComponents = array_values ( $ uuid -> getFieldsHex ( ) ) ; $ this -> swapTimestampAndRandomBits ( $ sixPieceComponents ) ; return vsprintf ( '%08s-%04s-%04s-%02s%02s-%012s' , $ sixPieceComponents ) ; }
Encodes a UuidInterface as a string representation of a timestamp first COMB UUID

@param UuidInterface $uuid

@return string Hexadecimal string representation of a GUID
Encodes a UuidInterface as a string representation of a timestamp first COMB UUID