Completed
Push — master ( a5d24e...028b40 )
by Gabriel
02:43
created

InvalidUserException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Sinergi\Users\User\Exception;
4
5
use Sinergi\Users\User\UserException;
6
7
class InvalidUserException extends UserException
8
{
9
    private $errors;
10
11
    public function __construct(array $errors)
12
    {
13
        parent::__construct('Invalid user', 1200);
14
        $this->errors = $errors;
15
    }
16
17
    public function getErrors(): array
18
    {
19
        return $this->errors;
20
    }
21
}
22