From 176e97227db6e9df8d1fb5251a0f1d9dbcddde0a Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Mon, 25 Sep 2023 19:53:25 +0100 Subject: [PATCH] update class visibility --- ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php b/ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php index 87229d6a84..da392f4933 100644 --- a/ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php +++ b/ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php @@ -342,7 +342,7 @@ abstract class AbstractProcessor extends \Civi\Api4\Generic\AbstractAction { * @param string $entityName * @param $records */ - public function replaceReferences($entityName, $records) { + protected function replaceReferences($entityName, $records) { $entityNames = array_diff(array_keys($this->_entityIds), [$entityName]); $entityType = $this->_formDataModel->getEntity($entityName)['type']; foreach ($records as $key => $record) { @@ -369,7 +369,7 @@ abstract class AbstractProcessor extends \Civi\Api4\Generic\AbstractAction { * @param array $records * @param string $entityName */ - public function fillIdFields(array &$records, string $entityName): void { + protected function fillIdFields(array &$records, string $entityName): void { foreach ($records as $index => &$record) { if (empty($record['fields']['id']) && !empty($this->_entityIds[$entityName][$index]['id'])) { $record['fields']['id'] = $this->_entityIds[$entityName][$index]['id']; -- 2.25.1