public function getRegistrationById($id)
{
// we are going to assume that the registration only exists in one spot
/** @var Procedure $procedure */
foreach ($this->procedures as $procedure) {
/** @var Registration $registration */
$registration = $procedure->getRegistrationById($id);
if ($registration) {
return $registration;
}
}
return false;
}