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

HttpRule::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
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