| 1 | <?php |
||
| 7 | final class InformationCollectionStruct |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var mixed[] An array of field values like[$fieldDefIdentifier] |
||
| 11 | */ |
||
| 12 | private $collectedData; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Returns value for $fieldDefIdentifier. |
||
| 16 | * |
||
| 17 | * @param string $fieldDefIdentifier |
||
| 18 | * |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | public function getCollectedFieldValue(string $fieldDefIdentifier) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * This method returns the complete fields collection. |
||
| 28 | */ |
||
| 29 | public function getCollectedFields(): array |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Sets value for $fieldDefIdentifier. |
||
| 36 | * |
||
| 37 | * @param string $fieldDefIdentifier |
||
| 38 | * @param mixed $value |
||
| 39 | */ |
||
| 40 | public function setCollectedFieldValue(string $fieldDefIdentifier, $value): void |
||
| 44 | } |
||
| 45 |