Completed
Push — master ( 47cdc0...d913d0 )
by Derek Stephen
01:54
created

TextAreaRender   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
ccs 0
cts 6
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderBlock() 0 6 1
1
<?php
2
/**
3
 * User: delboy1978uk
4
 * Date: 04/12/2016
5
 * Time: 21:08
6
 */
7
8
namespace Del\Form\Renderer\Field;
9
10
use Del\Form\Field\FieldInterface;
11
use DOMElement;
12
13
class TextAreaRender extends AbstractFieldRender implements FieldRendererInterface
14
{
15
    /**
16
     * @param FieldInterface $field
17
     * @param DOMElement $element
18
     * @return DOMElement
19
     */
20
    public function renderBlock(FieldInterface $field, DOMElement $element)
21
    {
22
        $text = $this->createText($field->getValue());
23
        $element->appendChild($text);
24
        return $element;
25
    }
26
27
}