public function createFromImportedData($name, $data)
    {
        if (!is_array($data)) {
            return new GroupParameter($name, [$data]);
        } elseif (!$this->isAssociativeArray($data)) {
            return new GroupParameter($name, $data);
        }
        $parameter = new GroupParameter($name);
        foreach ($data as $childName => $childData) {
            $parameter->addChild($this->createFromImportedData($childName, $childData));
        }
        return $parameter;
    }
public function createFromImportedData($name, $data)
    {
        if (!is_array($data)) {
            return new GroupParameter($name, [$data]);
        } elseif (!$this->isAssociativeArray($data)) {
            return new GroupParameter($name, $data);
        }
        $parameter = new GroupParameter($name);
        foreach ($data as $childName => $childData) {
            $parameter->addChild($this->createFromImportedData($childName, $childData));
        }
        return $parameter;
    }
public function createFromImportedData ( $ name , $ data ) { if ( ! is_array ( $ data ) ) { return new GroupParameter ( $ name , [ $ data ] ) ; } elseif ( ! $ this -> isAssociativeArray ( $ data ) ) { return new GroupParameter ( $ name , $ data ) ; } $ parameter = new GroupParameter ( $ name ) ; foreach ( $ data as $ childName => $ childData ) { $ parameter -> addChild ( $ this -> createFromImportedData ( $ childName , $ childData ) ) ; } return $ parameter ; }
Create GroupParameter instance from imported data.

@param string $name
@param array  $data
@return GroupParameter
Create GroupParameter instance from imported data .