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

BaseSmsIntelException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
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