BeesWaxResponse   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 46
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getPayload() 0 3 1
A getCurlHandler() 0 3 1
A getCookiesContent() 0 3 1
A getStatusCode() 0 3 1
A __construct() 0 6 1
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