Source of file KeyValuePart.php
Size: 0,784 Bytes - Last Modified: 2021-12-23T10:39:20+00:00
/var/www/docs.ssmods.com/process/src/src/Api/FormBuilder/Parts/KeyValuePart.php
1234567891011121314151617181920212223242526272829 | <?php namespace Sunnysideup\BuildDataObject\Api\FormBuilder\Parts; use Sunnysideup\BuildDataObject\Api\FormData\FormDataDecomposer; class KeyValuePart extends BasePart { protected function onGetInnerComposite(int $index): InnerComposite { $char = FormDataDecomposer::EXP_CHAR; $key = FormDataDecomposer::KEY_IDENTIFIER; $val = FormDataDecomposer::VALUE_IDENTIFIER; $keyIndex = $char . $key . $char; $valIndex = $char . $val . $char; $nameKey = $this->name . $keyIndex; $nameValue = $this->name . $valIndex; if ($this->isMultiple) { $nameKey .= $index; $nameValue .= $index; } return new InnerComposite($nameKey, $this->source1, $nameValue, $this->source2); } } |