public function createFromImportedData($data)
    {
        $group = new Group($data['name'], $data['include_pattern'], $data['exclude_pattern']);
        if (isset($data['type'])) {
            $group->setType($data['type']);
        }
        $group->setOrdering($data['ordering']);
        foreach ($data['classes'] as $className => $classData) {
            $group->addClass($this->getGroupClassFactory()->createFromImportedData($className, $classData));
        }
        return $group;
    }
public function createFromImportedData($data)
    {
        $group = new Group($data['name'], $data['include_pattern'], $data['exclude_pattern']);
        if (isset($data['type'])) {
            $group->setType($data['type']);
        }
        $group->setOrdering($data['ordering']);
        foreach ($data['classes'] as $className => $classData) {
            $group->addClass($this->getGroupClassFactory()->createFromImportedData($className, $classData));
        }
        return $group;
    }
public function createFromImportedData ( $ data ) { $ group = new Group ( $ data [ 'name' ] , $ data [ 'include_pattern' ] , $ data [ 'exclude_pattern' ] ) ; if ( isset ( $ data [ 'type' ] ) ) { $ group -> setType ( $ data [ 'type' ] ) ; } $ group -> setOrdering ( $ data [ 'ordering' ] ) ; foreach ( $ data [ 'classes' ] as $ className => $ classData ) { $ group -> addClass ( $ this -> getGroupClassFactory ( ) -> createFromImportedData ( $ className , $ classData ) ) ; } return $ group ; }
Create Group instance from imported data.

@param array  $data
@return Group
Create Group instance from imported data .