Completed
Push — master ( bffabd...e8b86c )
by Sullivan
02:12
created

PayboxException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
namespace Nexy\PayboxDirect\Exception;
4
5
/**
6
 * @author Sullivan Senechal <[email protected]>
7
 */
8
final class PayboxException extends RuntimeException
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function __construct($message = '', $code = 0, \Exception $previous = null)
14
    {
15
        parent::__construct($message, $code, $previous);
16
17
        $this->message = sprintf('%05d: %s', $code, $message);
18
    }
19
}
20