BeesWaxResponseException::getCurlHandler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Audiens\BeesWax\Exception;
5
6
use Throwable;
7
8
class BeesWaxResponseException extends BeesWaxGenericException
9
{
10
    /** @var resource */
11
    protected $curlHandler;
12
13
    /**
14
     * BeesWaxResponseException constructor.
15
     *
16
     * @param resource       $curlHandler
17
     * @param string         $message
18
     * @param Throwable|null $previous
19
     */
20
    public function __construct($curlHandler, string $message = '', Throwable $previous = null)
21
    {
22
        parent::__construct($message, static::CODE_WAX_RESPONSE_EXCEPTION, $previous);
23
        $this->curlHandler = $curlHandler;
24
    }
25
26
    /**
27
     * @return resource
28
     */
29
    public function getCurlHandler()
30
    {
31
        return $this->curlHandler;
32
    }
33
}
34