EscaperAware   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
wmc 1
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
declare(strict_types = 1);
4
5
namespace Puzzle\QueryBuilder\Traits;
6
7
use Puzzle\QueryBuilder\Escaper;
8
9
trait EscaperAware
10
{
11
    protected
12
        $escaper;
1 ignored issue
show
Coding Style introduced by
The visibility should be declared for property $escaper.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
13
14 62
    public function setEscaper(Escaper $escaper): self
15
    {
16 62
        $this->escaper = $escaper;
17
18 62
        return $this;
19
    }
20
}
21