EscaperAware   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 12
wmc 7
lcom 0
cbo 0
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEscaper() 0 6 1
1
<?php
2
3
namespace Muffin\Traits;
4
5
use Muffin\Escaper;
6
7
trait EscaperAware
8
{
9
    protected
10
        $escaper;
11
12 62
    public function setEscaper(Escaper $escaper)
13
    {
14 62
        $this->escaper = $escaper;
15
16 62
        return $this;
17
    }
18
}
19