BaseResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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