FileException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace yiicod\fileupload\models\behaviors;
4
5
use Throwable;
6
7
class FileException extends \Exception
8
{
9
    private $_error;
10
11
    public function __construct($error, $message = '', $code = 0, Throwable $previous = null)
12
    {
13
        $this->_error = $error;
14
15
        parent::__construct($message, $code, $previous);
16
    }
17
18
    public function getError()
19
    {
20
        return $this->_error;
21
    }
22
}
23