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

ApiResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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