UserConfirmationException::setModel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
ccs 0
cts 6
cp 0
cc 1
nc 1
nop 2
crap 2
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