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