Skip to content

Commit

Permalink
Update event_registration_person.php
Browse files Browse the repository at this point in the history
  • Loading branch information
schorschy committed Nov 24, 2023
1 parent bc24245 commit f7dcf9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/event_registration_person.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand All @@ -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;
Expand Down

0 comments on commit f7dcf9d

Please sign in to comment.