protected function getUuidGenerator() { if (!$this->uuidGenerator) { $this->uuidGenerator = function () { return UUIDHelper::generateUUID(); }; } return $this->uuidGenerator; }