/** * @param UuidInterface $id * @return string binary bytes */ private function getBytesFromId(UuidInterface $id) { return $id->getBytes(); }
/** * @param UuidInterface $other * @return int -1, 0 or 1 */ public function compareTo(UuidInterface $other) { $ramseyOther = RamseyUuid::fromBytes($other->getBytes()); return $this->ramseyUuid->compareTo($ramseyOther); }