| Conditions | 5 | 
| Paths | 16 | 
| Total Lines | 26 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 38 | public function createFromArray(array $themeData)  | 
            ||
| 39 |     { | 
            ||
| 40 | /** @var ThemeInterface $theme */  | 
            ||
| 41 | $theme = $this->basicThemeFactory->createNew();  | 
            ||
| 42 | |||
| 43 | $theme->setName($themeData['name']);  | 
            ||
| 44 | $theme->setPath($themeData['path']);  | 
            ||
| 45 | |||
| 46 |         if (isset($themeData['authors'])) { | 
            ||
| 47 | $theme->setAuthors($themeData['authors']);  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 |         if (isset($themeData['title'])) { | 
            ||
| 51 | $theme->setTitle($themeData['title']);  | 
            ||
| 52 | }  | 
            ||
| 53 | |||
| 54 |         if (isset($themeData['description'])) { | 
            ||
| 55 | $theme->setDescription($themeData['description']);  | 
            ||
| 56 | }  | 
            ||
| 57 | |||
| 58 |         if (isset($themeData['parents'])) { | 
            ||
| 59 | $theme->setParentsNames($themeData['parents']);  | 
            ||
| 60 | }  | 
            ||
| 61 | |||
| 62 | return $theme;  | 
            ||
| 63 | }  | 
            ||
| 64 | }  | 
            ||
| 65 |