Request   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare (strict_types=1);
4
5
namespace dtapps\qiniu\sms;
6
7
/**
8
 * Class Request
9
 * @package dtapps\qiniu\sms
10
 */
11
final class Request
12
{
13
    public $url;
14
    public $headers;
15
    public $body;
16
    public $method;
17
18
    public function __construct($method, $url, array $headers = array(), $body = null)
19
    {
20
        $this->method = strtoupper($method);
21
        $this->url = $url;
22
        $this->headers = $headers;
23
        $this->body = $body;
24
    }
25
}