Switch to public getter instead of deprecated internal variable
Future-proofing, stop using internal variable when there's a public getter available.
See https://github.com/civicrm/civicrm-core/pull/29991#issuecomment-2078347786
Future-proofing, stop using internal variable when there's a public getter available.
See https://github.com/civicrm/civicrm-core/pull/29991#issuecomment-2078347786