Completed
Push — master ( c63a7f...74e06a )
by Derek
02:21
created

Query   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
namespace Subreality\Dilmun\Anshar\Http\UriParts;
3
4
class Query
5
{
6
    private static $unreserved_pattern  = '\w\-\.~';
0 ignored issues
show
Unused Code introduced by
The property $unreserved_pattern is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
7
    private static $pct_encoded_pattern = '%[A-Fa-f0-9]{2}';
0 ignored issues
show
Unused Code introduced by
The property $pct_encoded_pattern is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
8
9
    private $query = "";
0 ignored issues
show
Unused Code introduced by
The property $query is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
10
11 7
    public function __construct($query)
12
    {
13 7
        if (!is_string($query)) {
14 6
            throw new \InvalidArgumentException("Query must be a string");
15
        }
16
    }
17
}