Conditions | 5 |
Paths | 16 |
Total Lines | 25 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 5.3256 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
22 | 4 | $this->framework = $framework; |
|
23 | } |
||
24 | 4 | /** |
|
25 | 2 | * Renders a view-only version of this renderable. |
|
26 | * |
||
27 | 2 | * @param mixed $value The value to render. |
|
28 | 2 | * @param Field $field The field. |
|
29 | * @param HTMLNode $previous The HTML coming from the previous composer. |
||
30 | * @return HTMLNode The HTML rendered. |
||
31 | 3 | */ |
|
32 | 3 | abstract public function viewable($value, Field $field, HTMLNode $previous): HTMLNode; |
|
33 | 3 | ||
34 | /** |
||
35 | * Renders a form editable version of this renderable |
||
36 | 3 | * |
|
37 | * @param mixed $value The value to render. |
||
38 | 3 | * @param Field $field The field. |
|
39 | 3 | * @param HTMLNode $previous The HTML coming from the previous composer. |
|
40 | * @return HTMLNode The HTML rendered. |
||
41 | */ |
||
42 | abstract public function editable($value, Field $field, HTMLNode $previous): HTMLNode; |
||
43 | } |
||
44 |