Test Failed
Push — master ( 3dd85e...34f16b )
by Devin
04:34 queued 10s
created

ApiResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Stripe;
4
5
/**
6
 * Class ApiResponse
7
 *
8
 * @package Stripe
9
 */
10
class ApiResponse
11
{
12
    public $headers;
13
    public $body;
14
    public $json;
15
    public $code;
16
17
    /**
18
     * @param string $body
19
     * @param integer $code
20
     * @param array|null $headers
21
     * @param array|null $json
22
     *
23
     * @return obj An APIResponse
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
24
     */
25
    public function __construct($body, $code, $headers, $json)
26
    {
27
        $this->body = $body;
28
        $this->code = $code;
29
        $this->headers = $headers;
30
        $this->json = $json;
31
    }
32
}
33