ReportRequestErrorException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
namespace Werkspot\BingAdsApiBundle\Api\Exceptions;
3
4
use Exception;
5
6
/**
7
 * @codeCoverageIgnore
8
 */
9
class ReportRequestErrorException extends Exception
10
{
11
    /**
12
     * @var string
13
     */
14
    private $reportRequestStatus;
15
16
    /**
17
     * @var string
18
     */
19
    private $reportRequestId;
20
21
    /**
22
     * @param string $message
23
     * @param string $reportRequestStatus
24
     * @param string $reportRequestId
25
     */
26
    public function __construct($message, $reportRequestStatus, $reportRequestId)
27
    {
28
        $this->reportRequestStatus = $reportRequestStatus;
29
        $this->reportRequestId = $reportRequestId;
30
31
        parent::__construct($message);
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getReportRequestStatus()
38
    {
39
        return $this->reportRequestStatus;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getReportRequestId()
46
    {
47
        return $this->reportRequestId;
48
    }
49
}
50