Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class DefinitionList extends Base implements IBuilder |
||
13 | { |
||
14 | use ItemTrait; |
||
15 | |||
16 | const IDENTIFIER = 'definition-list'; |
||
17 | |||
18 | protected $defaultListTag = Html5::TAG_DL; |
||
19 | protected $defaultItemTag = ''; |
||
20 | protected $defaultLabelTag = Html5::TAG_DT; |
||
21 | protected $defaultContentTag = Html5::TAG_DD; |
||
22 | |||
23 | protected $defaultListClass = 'definition-list'; |
||
24 | |||
25 | protected $defaultWithLabel = '1'; |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getIdentifier(): string |
||
31 | { |
||
32 | return static::IDENTIFIER; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
37 | * |
||
38 | * @param Item $item |
||
39 | * @param Entity $list |
||
40 | * @param <string,string> $tags |
||
|
|||
41 | * @param <string,string> $classes |
||
42 | * @param <string,string> $options |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | protected function buildImage(Item $item, Entity $list, array $tags, array $classes, array $options): string |
||
49 | } |
||
50 | } |
||
51 |