Completed
Push — master ( cd27f7...5aa4e1 )
by Changwan
02:39
created

HttpRule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 4 1
1
<?php
2
namespace Wandu\Sanitizer\Http;
3
4
use Wandu\Http\Parameters\Parameter;
5
use Wandu\Sanitizer\Contracts\Rule;
6
7
abstract class HttpRule implements Rule
8
{
9
    /**
10
     * @param array $attributes
11
     * @return \Wandu\Http\Parameters\Parameter
12
     */
13
    public function map(array $attributes = [])
14
    {
15
        return new Parameter($attributes);
16
    }
17
}
18