Passed
Push — master ( fed342...00a718 )
by Bruno
09:40
created

Renderable_constant::editable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 3
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\HTML\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
    const HTML = 'CONSTANT_HTML';
12
13
    public function viewable($value, Field $field, HTMLElement $previous): HTMLElement
14
    {
15
        return $this->container(HTMLElement::factory('', [], self::HTML, true), $field);
16
    }
17
    
18
    public function editable($value, Field $field, HTMLElement $previous): HTMLElement
19
    {
20
        return $this->container(HTMLElement::factory('', [], self::HTML, true), $field);
21
    }
22
}
23