BeesWaxLoginException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Audiens\BeesWax\Exception;
4
5
use Audiens\BeesWax\BeesWaxResponse;
6
use Throwable;
7
8
class BeesWaxLoginException extends BeesWaxGenericException
9
{
10
    /** @var BeesWaxResponse */
11
    protected $response;
12
13
    public function __construct(BeesWaxResponse $response, string $message = '', Throwable $previous = null)
14
    {
15
        parent::__construct($message, static::CODE_INVALID_LOGIN, $previous);
16
17
        $this->response = $response;
18
    }
19
}
20