Neos\Flow\ObjectManagement\ObjectSerializer::reconstituteArray PHP Метод

reconstituteArray() защищенный Метод

Reconstitutes an array from a data array.
protected reconstituteArray ( array $dataArray ) : array
$dataArray array The data array to reconstitute from
Результат array The reconstituted array
    protected function reconstituteArray($dataArray)
    {
        $result = [];
        foreach ($dataArray as $key => $entryData) {
            $value = null;
            switch ($entryData[self::TYPE]) {
                case 'simple':
                    $value = $entryData[self::VALUE];
                    break;
                case 'array':
                    $value = $this->reconstituteArray($entryData[self::VALUE]);
                    break;
                case 'object':
                    $value = $this->reconstituteObject($entryData[self::VALUE], $this->objectsAsArray[$entryData[self::VALUE]]);
                    break;
                case 'SplObjectStorage':
                    $value = $this->reconstituteSplObjectStorage($this->objectsAsArray[$entryData[self::VALUE]]);
                    break;
                case 'Collection':
                    $value = $this->reconstituteCollection($entryData[self::CLASSNAME], $entryData[self::VALUE]);
                    break;
                case 'persistenceObject':
                    $value = $this->reconstitutePersistenceObject($entryData[self::VALUE][self::CLASSNAME], $entryData[self::VALUE]['UUID']);
                    break;
            }
            $result[$key] = $value;
        }
        return $result;
    }