Passed
Push — main ( ed4b4c...986270 )
by Aleksandr
09:15
created

RawDataResponse::setRawData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Responses;
6
7
/**
8
 * Вспомогательный класс, который оборачивает любые данные и реализует стандартный для библиотеки интерфейс ResponseInterface
9
 * используется в запросе списка полигонов в формате GeoJSON
10
 */
11
class RawDataResponse implements ResponseInterface
12
{
13
    private $rawData = null;
14
15 1
    public function __construct($response = null)
16
    {
17 1
        $this->rawData = $response;
18
    }
19
20
    /**
21
     * @return mixed|null
22
     */
23 1
    public function getRawData()
24
    {
25 1
        return $this->rawData;
26
    }
27
28
    /**
29
     * @param mixed|null $rawData
30
     *
31
     * @return RawDataResponse
32
     */
33 1
    public function setRawData($rawData)
34
    {
35 1
        $this->rawData = $rawData;
36 1
        return $this;
37
    }
38
}
39