Conditions | 5 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function createFromArray(array $data) |
||
25 | { |
||
26 | /** @var ThemeAuthor $author */ |
||
27 | $author = new ThemeAuthor(); |
||
28 | |||
29 | $author->setName(isset($data['name']) ? $data['name'] : null); |
||
30 | $author->setEmail(isset($data['email']) ? $data['email'] : null); |
||
31 | $author->setHomepage(isset($data['homepage']) ? $data['homepage'] : null); |
||
32 | $author->setRole(isset($data['role']) ? $data['role'] : null); |
||
33 | |||
34 | return $author; |
||
35 | } |
||
36 | } |
||
37 |