Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public static function newFromValue(string $fieldName, array $value): ArticleExtraEmbedFieldInterface |
||
28 | { |
||
29 | $extra = new self(); |
||
30 | |||
31 | $extra->setFieldName($fieldName); |
||
32 | $extra->setEmbed($value['embed']); |
||
33 | $extra->setDescription($value['description']); |
||
34 | |||
35 | return $extra; |
||
36 | } |
||
37 | |||
66 |