BeesWaxResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Audiens\BeesWax;
5
6
class BeesWaxResponse
7
{
8
    /** @var string */
9
    protected $cookiesContent;
10
11
    /** @var string */
12
    protected $payload;
13
14
    /** @var resource */
15
    protected $curlHandler;
16
17
    /** @var int */
18
    protected $statusCode;
19
20
    public function __construct($curlHandler, string $payload, int $statusCode, string $cookiesContent)
21
    {
22
        $this->curlHandler = $curlHandler;
23
        $this->payload = $payload;
24
        $this->statusCode = $statusCode;
25
        $this->cookiesContent = $cookiesContent;
26
    }
27
28
    public function getCookiesContent(): string
29
    {
30
        return $this->cookiesContent;
31
    }
32
33
    public function getPayload(): string
34
    {
35
        return $this->payload;
36
    }
37
38
    /**
39
     * @return resource
40
     */
41
    public function getCurlHandler()
42
    {
43
        return $this->curlHandler;
44
    }
45
46
    /**
47
     * @return int
48
     */
49
    public function getStatusCode(): int
50
    {
51
        return $this->statusCode;
52
    }
53
}
54