Passed
Push — master ( 00a718...8afe66 )
by Bruno
06:41
created

Renderable_constant::viewable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 3
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\Materialize\Renderable;
4
5
use Formularium\Field;
6
use Formularium\Frontend\HTML\Renderable;
7
use Formularium\HTMLElement;
8
9
class Renderable_constant extends Renderable
10
{
11
    public function viewable($value, Field $field, HTMLElement $previous): HTMLElement
12
    {
13
        return $previous;
14
    }
15
    
16
    public function editable($value, Field $field, HTMLElement $previous): HTMLElement
17
    {
18
        return $previous;
19
    }
20
}
21