| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Natural implements IBuilder |
||
| 15 | { |
||
| 16 | use ItemTrait; |
||
| 17 | |||
| 18 | const IDENTIFIER = 'natural-list'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function getIdentifier(): string |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string[] |
||
| 30 | */ |
||
| 31 | public function getPartClassesByOrder(): array |
||
| 32 | { |
||
| 33 | return ['item-name', 'item-body', 'item-image']; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string[] |
||
| 38 | */ |
||
| 39 | public function wrapperTags(): array |
||
| 40 | { |
||
| 41 | return [Html5::TAG_SPAN, Html5::TAG_SPAN, Html5::TAG_SPAN]; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
| 46 | * |
||
| 47 | * @param Entity $list |
||
| 48 | * @param ParsedTemplate|null $template |
||
| 49 | * |
||
| 50 | * @return Data |
||
| 51 | */ |
||
| 52 | public function build($list, ?ParsedTemplate $template = null): IData |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |