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