Completed
Push — master ( 2d3e3c...0995af )
by Rob
09:50 queued 08:39
created

XssHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

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