Completed
Push — master ( 8c84a6...1cc115 )
by Dominik
02:12
created

UserNotFoundException::create()   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
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Chubbyphp\Security\Authentication\Exception;
4
5
final class UserNotFoundException extends AbstractLoginException
6
{
7
    /**
8
     * @param string $email
9
     *
10
     * @return UserNotFoundException
11
     */
12
    public static function create(string $email): self
13
    {
14
        return new self(sprintf('User not found with email %s', $email));
15
    }
16
}
17