ReportRequestErrorException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 3
c 3
b 0
f 1
lcom 0
cbo 0
dl 0
loc 41
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getReportRequestStatus() 0 4 1
A getReportRequestId() 0 4 1
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