Completed
Pull Request — master (#20)
by Alexander
10:01
created

BaseSmsIntelException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getErrorData() 0 4 1
1
<?php
2
3
namespace seregazhuk\SmsIntel\Exceptions;
4
5
use Throwable;
6
7
class BaseSmsIntelException extends \Exception
8
{
9
    /** @var array */
10
    protected $errorData;
11
12
    public function __construct($message = "", $code = 0, array $errorData = [], Throwable $previous = null)
13
    {
14
        parent::__construct($message, $code, $previous);
15
        $this->errorData = $errorData;
16
    }
17
18
    /**
19
     * @return array|null
20
     */
21
    public function getErrorData()
22
    {
23
        return $this->errorData;
24
    }
25
}
26