Completed
Push — master ( 3aae6e...381da0 )
by Andrii
02:28
created

Response::getReasonPhrase()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Tools to use API as ActiveRecord for Yii2
4
 *
5
 * @link      https://github.com/hiqdev/yii2-hiart
6
 * @package   yii2-hiart
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\hiart\proxy;
12
13
abstract class Response extends \hiqdev\hiart\AbstractResponse
14
{
15
    /**
16
     * @var object
17
     */
18
    protected $worker;
19
20
    public function __construct(Request $request, $worker)
21
    {
22
        $this->request = $request;
23
        $this->worker = $worker;
24
    }
25
26
    public function getWorker()
27
    {
28
        return $this->worker;
29
    }
30
31
    public function getHeader($name)
32
    {
33
        return $this->worker->getHeader($name);
34
    }
35
36
    public function getStatusCode()
37
    {
38
        return $this->worker->getStatusCode();
39
    }
40
41
    public function getReasonPhrase()
42
    {
43
        return $this->worker->getReasonPhrase();
44
    }
45
}
46