TextHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace devtoolboxuk\cerberus\Handlers;
4
5
use devtoolboxuk\cerberus\Wrappers\HtmlWrapper as HtmlWrapper;
6
use devtoolboxuk\cerberus\Wrappers\UrlWrapper as UrlWrapper;
7
8
class TextHandler extends Handler
9
{
10
    public function __construct($value = '')
11
    {
12
        parent::__construct($value);
13
        $this->setHandlerName(str_replace(__NAMESPACE__ . '\\', '', __CLASS__));
14
15
        $this->pushWrapper(new HtmlWrapper());
16
        $this->pushWrapper(new UrlWrapper());
17
    }
18
}