public function createFromImportedData($data)
    {
        $revision = new Revision();
        $revision->setReleasedAt(new \DateTime($data['released_at']));
        $revision->setReleasedBy($data['released_by']);
        $revision->setComment($data['comment']);
        foreach ($data['groups'] as $groupData) {
            $revision->addGroup($this->getGroupFactory()->createFromImportedData($groupData));
        }
        return $revision;
    }
public function createFromImportedData($data)
    {
        $revision = new Revision();
        $revision->setReleasedAt(new \DateTime($data['released_at']));
        $revision->setReleasedBy($data['released_by']);
        $revision->setComment($data['comment']);
        foreach ($data['groups'] as $groupData) {
            $revision->addGroup($this->getGroupFactory()->createFromImportedData($groupData));
        }
        return $revision;
    }
public function createFromImportedData ( $ data ) { $ revision = new Revision ( ) ; $ revision -> setReleasedAt ( new \ DateTime ( $ data [ 'released_at' ] ) ) ; $ revision -> setReleasedBy ( $ data [ 'released_by' ] ) ; $ revision -> setComment ( $ data [ 'comment' ] ) ; foreach ( $ data [ 'groups' ] as $ groupData ) { $ revision -> addGroup ( $ this -> getGroupFactory ( ) -> createFromImportedData ( $ groupData ) ) ; } return $ revision ; }
Create Revision instance from imported data.

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