AuthenticationFailedException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 2
1
<?php
2
3
namespace Ddeboer\Imap\Exception;
4
5
class AuthenticationFailedException extends Exception
6
{
7
    public function __construct($user, $error = null)
8
    {
9
        parent::__construct(
10
            sprintf(
11
                'Authentication failed for user %s with error %s',
12
                $user,
13
                $error
14
            )
15
        );
16
    }
17
}
18