diff --git a/lib/event_registration_person.php b/lib/event_registration_person.php index 567215e..eb7ac75 100644 --- a/lib/event_registration_person.php +++ b/lib/event_registration_person.php @@ -59,7 +59,7 @@ public function getRegistrationId(): int return $this->getValue('registration_id'); } - public function getRegistration(): object + public function getRegistration(): ?rex_yform_manager_collection { return $this->getRelatedDataset('registration_id'); } @@ -74,14 +74,14 @@ public function getHash(): string return $this->getValue('hash'); } - public static function getByUuid($uuid = null): object + public static function getByUuid($uuid = null): ?rex_yform_manager_collection { if (!$uuid) { return; } return self::query()->where('uuid', $uuid)->findOne(); } - public static function getByHash($hash = null): object + public static function getByHash($hash = null): ?rex_yform_manager_collection { if (!$hash) { return;