BaseResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
c 2
b 0
f 2
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Trucker\Responses;
4
5
/**
6
 * Provides a common type hint for responses.
7
 *
8
 * Classes that implement this interface both utilize the magic __call()
9
 * to delegate method calls to Guzzle.  Due to this magic, common methods
10
 * are not outlined in this interface to avoid conflicts/implementation.
11
 *
12
 * @method int getStatusCode
13
 *
14
 * @codeCoverageIgnore
15
 *
16
 * Coverage is ignored here since this class has no functionality by itself.
17
 */
18
class BaseResponse
19
{
20
    protected $response;
21
22
    /**
23
     * BaseResponse constructor.
24
     *
25
     * @param $response
26
     */
27
    public function __construct($response = null)
28
    {
29
        $this->response = $response;
30
    }
31
}
32