Completed
Push — master ( 21b117...a2719e )
by ARCANEDEV
10s
created

UserConfirmationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0
ccs 0
cts 6
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setModel() 0 8 1
1
<?php namespace Arcanedev\LaravelAuth\Exceptions;
2
3
use Illuminate\Database\Eloquent\ModelNotFoundException;
4
5
/**
6
 * Class     UserAlreadyConfirmedException
7
 *
8
 * @package  Arcanedev\LaravelAuth\Exceptions
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class UserConfirmationException extends ModelNotFoundException
12
{
13
    /* -----------------------------------------------------------------
14
     |  Setters & Getters
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Set the affected Eloquent model.
20
     *
21
     * @param  string  $model
22
     * @param  array   $ids
23
     *
24
     * @return self
25
     */
26
    public function setModel($model, $ids = [])
27
    {
28
        parent::setModel($model);
29
30
        $this->message = 'Unconfirmed user was not found.';
31
32
        return $this;
33
    }
34
}
35