Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | class Renderable_relationship extends Renderable |
||
12 | { |
||
13 | use RenderableVueTrait { |
||
14 | RenderableVueTrait::viewable as _viewable; |
||
15 | RenderableVueTrait::editable as _editable; |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * Subcall of wrapper editable() |
||
20 | * |
||
21 | * @param mixed $value |
||
22 | * @param Field $field |
||
23 | * @param HTMLNode $previous |
||
24 | * @return HTMLNode |
||
25 | */ |
||
26 | public function viewable($value, Field $field, HTMLNode $previous): HTMLNode |
||
27 | { |
||
28 | $previous = $this->_viewable($value, $field, $previous); |
||
29 | // TODO: replace with <Card></Card>, props |
||
30 | return $previous; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Subcall of wrapper editable() |
||
35 | * |
||
36 | * @param mixed $value |
||
37 | * @param Field $field |
||
38 | * @param HTMLNode $previous |
||
39 | * @return HTMLNode |
||
40 | */ |
||
41 | public function editable($value, Field $field, HTMLNode $previous): HTMLNode |
||
46 | } |
||
47 | } |
||
48 |