Request   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace Xmly\Http;
3
4
final class Request
5
{
6
    public $url;
7
    public $headers;
8
    public $body;
9
    public $method;
10
11 13
    public function __construct($method, $url, array $headers = array(), $body = null)
12
    {
13 13
        $this->method = strtoupper($method);
14 13
        $this->url = $url;
15 13
        $this->headers = $headers;
16 13
        $this->body = $body;
17 13
    }
18
}
19